|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.carto.MapServerInfo
public class MapServerInfo
The Map Server Info coclass provides read-only information about a map.
Constructor Summary | |
---|---|
MapServerInfo()
Constructs a MapServerInfo using ArcGIS Engine. |
|
MapServerInfo(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MapServerInfo theMapServerInfo = (MapServerInfo) obj; |
Method Summary | |
---|---|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
IColor |
getBackgroundColor()
The background color of the map (data frame). |
IFillSymbol |
getBackgroundSymbol()
Background symbol of the map (data frame). |
IMapServerBookmarks |
getBookmarks()
The published bookmarks for the map. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getCopyrightText()
Copyright information associated with the layer. |
IMapDescription |
getDefaultMapDescription()
The default map settings. |
double |
getDefaultTimeInterval()
The recommended default time interval to be used to animate the layer/table in the service. |
int |
getDefaultTimeIntervalUnits()
The recommended default time interval units to be used to animate the layer/table in the service. |
double |
getDefaultTimeWindow()
The recommended time window expressed in the same units as the time interval for the service. |
String |
getDescription()
The description of the map (data frame). |
IEnvelope |
getExtent()
The current extent of the map (data frame). |
IEnvelope |
getFullExtent()
The full extent of the map (data frame). |
ITimeExtent |
getFullTimeExtent()
TimeExtent of interest that the map as been authored. |
IMapLayerInfos |
getMapLayerInfos()
A collection of Map Layer Info objects, each containing information about a layer in the map (data frame). |
int |
getMapUnits()
The units for the map (data frame). |
double |
getMaxScale()
The maximum visible scale for the service. |
double |
getMinScale()
The minimum visible scale for the service. |
String |
getName()
The name of the map (data frame). |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
IStandaloneTableDescriptions |
getStandaloneTableDescriptions()
Standalone tables descriptions that can passed in to other methods. |
IStandaloneTableInfos |
getStandaloneTableInfos()
Standalone tables infromation in a given map. |
int |
hashCode()
the hashcode for this object |
void |
isDirty()
isDirty |
boolean |
isHasLiveData()
Indicates whether the service is being updated frequently with new data. |
boolean |
isSupportsDynamicLayers()
Indicates if this server supports per-request modification to layer properties. |
void |
load(IStream pstm)
load |
void |
readExternal(ObjectInput in)
|
void |
save(IStream pstm,
int fClearDirty)
save |
void |
serialize(IXMLSerializeData data)
Serializes an object to XML. |
void |
writeExternal(ObjectOutput out)
|
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 |
---|
public MapServerInfo() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic MapServerInfo(Object obj) throws IOException
MapServerInfo theMapServerInfo = (MapServerInfo) obj;
obj
to MapServerInfo
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
If two (or more) data frames have the same name in the map document, MapServer adds a distinctive number at the end of the second name. E.g. Layers and Layers2.
getName
in interface IMapServerInfo
getName
in interface IMapServerInfo2
getName
in interface IMapServerInfo3
getName
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
getDescription
in interface IMapServerInfo
getDescription
in interface IMapServerInfo2
getDescription
in interface IMapServerInfo3
getDescription
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getFullExtent() throws IOException, AutomationException
The full extent of the map can either be the combined extent of all layers within the map or a custom full extent set by on the data frame by the author of the map document being served.
getFullExtent
in interface IMapServerInfo
getFullExtent
in interface IMapServerInfo2
getFullExtent
in interface IMapServerInfo3
getFullExtent
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getExtent() throws IOException, AutomationException
This is the extent of the DefaultMapDescription.
getExtent
in interface IMapServerInfo
getExtent
in interface IMapServerInfo2
getExtent
in interface IMapServerInfo3
getExtent
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMapLayerInfos getMapLayerInfos() throws IOException, AutomationException
getMapLayerInfos
in interface IMapServerInfo
getMapLayerInfos
in interface IMapServerInfo2
getMapLayerInfos
in interface IMapServerInfo3
getMapLayerInfos
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IColor getBackgroundColor() throws IOException, AutomationException
The background color is set in the map document itself. If background color is not explicitly set in the original mxd, the default color is set to an off-white color (RGB value of 253,253,253).
getBackgroundColor
in interface IMapServerInfo
getBackgroundColor
in interface IMapServerInfo2
getBackgroundColor
in interface IMapServerInfo3
getBackgroundColor
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMapServerBookmarks getBookmarks() throws IOException, AutomationException
Bookmarks are set in the map document itself.
getBookmarks
in interface IMapServerInfo
getBookmarks
in interface IMapServerInfo2
getBookmarks
in interface IMapServerInfo3
getBookmarks
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMapDescription getDefaultMapDescription() throws IOException, AutomationException
The DefaultMapDescription refers to map settings set in the original map document. Changes to map settings using IMapDescription are temporary and do not affect the default map description returned by DefaultMapDescription.
The default settings for a MapServer object can be changed in two ways. First, you can make changes to the original map document and reinitialize the MapServer object. The other way to change the DefaultMapDescription is to use IMapServerObjects to access the fine-grained ArcObjects that the map settings are based, make the desired changes, and use the RefreshServerObjects method to overwite the old DefaultMapDescription with a new one. This should be done with objects in a non-pooled environment. Changing the state of pooled objects this way will lead to unexpected results.
getDefaultMapDescription
in interface IMapServerInfo
getDefaultMapDescription
in interface IMapServerInfo2
getDefaultMapDescription
in interface IMapServerInfo3
getDefaultMapDescription
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMapUnits() throws IOException, AutomationException
The map units are set in the map document itself and cannot be changed using MapServer. The map's original spatial reference determines the units. Changing the SpatialReference property of IMapDescription will not change the value of the MapUnits property on IMapServerInfo.
getMapUnits
in interface IMapServerInfo
getMapUnits
in interface IMapServerInfo2
getMapUnits
in interface IMapServerInfo3
getMapUnits
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFillSymbol getBackgroundSymbol() throws IOException, AutomationException
If the background symbol and color are not explicitly set in the original map document (.mxd), the default background symbol is a polygon. The polygon will have a solid fill with an off-white color (RGB value of 253,253,253).
getBackgroundSymbol
in interface IMapServerInfo2
getBackgroundSymbol
in interface IMapServerInfo3
getBackgroundSymbol
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCopyrightText() throws IOException, AutomationException
getCopyrightText
in interface IMapServerInfo2
getCopyrightText
in interface IMapServerInfo3
getCopyrightText
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void serialize(IXMLSerializeData data) throws IOException, AutomationException
serialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deserialize(IXMLSerializeData data) throws IOException, AutomationException
deserialize
in interface IXMLSerialize
data
- A reference to a com.esri.arcgis.system.IXMLSerializeData (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void isDirty() throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty
in interface IPersistStream
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(IStream pstm) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(IStream pstm, int fClearDirty) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save
in interface IPersistStream
pstm
- A reference to a com.esri.arcgis.system.IStream (in)fClearDirty
- The fClearDirty (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getSizeMax(_ULARGE_INTEGER[] pcbSize) throws IOException, AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax
in interface IPersistStream
pcbSize
- A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void getClassID(GUID[] pClassID) throws IOException, AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID
in interface IPersist
pClassID
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStandaloneTableInfos getStandaloneTableInfos() throws IOException, AutomationException
getStandaloneTableInfos
in interface IMapServerInfo3
getStandaloneTableInfos
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStandaloneTableDescriptions getStandaloneTableDescriptions() throws IOException, AutomationException
getStandaloneTableDescriptions
in interface IMapServerInfo3
getStandaloneTableDescriptions
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeExtent getFullTimeExtent() throws IOException, AutomationException
getFullTimeExtent
in interface IMapServerTimeInfo
getFullTimeExtent
in interface IMapServerTimeInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getDefaultTimeInterval() throws IOException, AutomationException
getDefaultTimeInterval
in interface IMapServerTimeInfo
getDefaultTimeInterval
in interface IMapServerTimeInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDefaultTimeIntervalUnits() throws IOException, AutomationException
getDefaultTimeIntervalUnits
in interface IMapServerTimeInfo
getDefaultTimeIntervalUnits
in interface IMapServerTimeInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getDefaultTimeWindow() throws IOException, AutomationException
getDefaultTimeWindow
in interface IMapServerTimeInfo
getDefaultTimeWindow
in interface IMapServerTimeInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasLiveData() throws IOException, AutomationException
isHasLiveData
in interface IMapServerTimeInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportsDynamicLayers() throws IOException, AutomationException
It returns the value of enableDynamicLayers property set in a service configuration.
When this is true, the MapServer supports the following capabilities:
isSupportsDynamicLayers
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMinScale() throws IOException, AutomationException
getMinScale
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMaxScale() throws IOException, AutomationException
getMaxScale
in interface IMapServerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |