com.esri.arcgis.arcmapui
Class MapViewerWindowFactory

java.lang.Object
  extended by com.esri.arcgis.arcmapui.MapViewerWindowFactory
All Implemented Interfaces:
IDataWindowFactory, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class MapViewerWindowFactory
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IDataWindowFactory

Factory to generate a Viewer Window.

Product Availability

Available with ArcGIS Desktop.

See Also:
Serialized Form

Constructor Summary
MapViewerWindowFactory()
          Constructs a MapViewerWindowFactory using ArcGIS Engine.
MapViewerWindowFactory(Object obj)
          Construct a MapViewerWindowFactory using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean canCreate(Object app)
          Indicates if the window is available given the current application state.
 IDataWindow create(Object app)
          Create a new floating window.
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 String getName()
          The name of objects created by this factory.
 int hashCode()
          the hashcode for this object
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

MapViewerWindowFactory

public MapViewerWindowFactory()
                       throws IOException,
                              UnknownHostException
Constructs a MapViewerWindowFactory using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

MapViewerWindowFactory

public MapViewerWindowFactory(Object obj)
                       throws IOException
Construct a MapViewerWindowFactory using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to MapViewerWindowFactory.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems MapViewerWindowFactory theMapViewerWindowFactory = (MapViewerWindowFactory) obj;
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

getName

public String getName()
               throws IOException,
                      AutomationException
The name of objects created by this factory.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
getName in interface IDataWindowFactory
Returns:
The name
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

canCreate

public boolean canCreate(Object app)
                  throws IOException,
                         AutomationException
Indicates if the window is available given the current application state.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
canCreate in interface IDataWindowFactory
Parameters:
app - A reference to another Automation Object (IDispatch) (in)
Returns:
The canCreate
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

create

public IDataWindow create(Object app)
                   throws IOException,
                          AutomationException
Create a new floating window.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Specified by:
create in interface IDataWindowFactory
Parameters:
app - A reference to another Automation Object (IDispatch) (in)
Returns:
A reference to a com.esri.arcgis.arcmapui.IDataWindow
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.