|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.carto.MapLayerInfo
public class MapLayerInfo
The Map Layer Info coclass provides read-only information about a layer in a map.
| Constructor Summary | |
|---|---|
MapLayerInfo()
Constructs a MapLayerInfo using ArcGIS Engine. |
|
MapLayerInfo(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. MapLayerInfo theMapLayerInfo = (MapLayerInfo) obj; |
|
| Method Summary | |
|---|---|
void |
deserialize(IXMLSerializeData data)
Deserializes an object from XML. |
boolean |
equals(Object o)
Compare this object with another |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getCopyrightText()
Copyright information associated with the layer. |
String |
getDescription()
The description of the layer. |
String |
getDisplayField()
Primary display field. |
IEnvelope |
getExtent()
The geographic extent of the layer. |
IStringArray |
getFieldAliases()
Array of strings that contains field alias for each field in Fields property. |
IFields |
getFields()
Array of attribute fields contained in the layer. |
int |
getID()
The layer identifier. |
double |
getMaxScale()
The maximum visible scale for the layer. |
double |
getMinScale()
The minimum visible scale for the layer. |
String |
getName()
The name of the layer. |
int |
getParentLayerID()
If the layer is a member of a composite layer, this property identifies the parent layer. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getSourceDescription()
The description of the source information for the layer. |
ILongArray |
getSubLayers()
The list identifying the sublayers if the layer is a composite layer. |
String |
getType()
The layer type. |
int |
hashCode()
the hashcode for this object |
boolean |
isCanFind()
Indicates if the layer supports the Find operation. |
boolean |
isCanIdentify()
Indicates if the layer supports the Identify operation. |
boolean |
isCanScaleSymbols()
Indicates if the layer supports symbol scaling. |
boolean |
isCanSelect()
Indicates if the layer supports feature selection. |
boolean |
isComposite()
Indicates if the layer is a composite layer. |
void |
isDirty()
isDirty |
boolean |
isFeatureLayer()
Indicates if the layer is a feature layer. |
boolean |
isHasAttributes()
Indicates if the layer has attributes. |
boolean |
isHasHyperlinks()
Indicates if the layer has hyperlinks. |
boolean |
isHasLabels()
Indicates if the layer has labels to turn on and off. |
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 MapLayerInfo()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public MapLayerInfo(Object obj)
throws IOException
MapLayerInfo theMapLayerInfo = (MapLayerInfo) obj;
obj to MapLayerInfo.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int getID()
throws IOException,
AutomationException
ID is a unique identifier for a layer in a given instance of ArcGIS Server map service. It is important to note that ID, SourceID and the index of layers (see MapLayerInfos) in map document are not the same. SourceID is used for map service interaction with the GPServer.
When a map service is published, a unique ID is assigned to all layers within the original map document (.mxd) starting from 0 (zero). This ID is accessible from IMapServerObjects2, MapLayerInfo, LayerDescription, MapServerLegendInfo, MapServerIdentifyResult, MapServerFindResult and FeatureExtent.
ID is not re-usable and does not change if the order of the layer is changed. This would change the how each layer is ordered in the index of layers. Adding new a layer results in a new ID being assigned. IDs keep incrementing as new layers are added to the map service. The limit of id numbers available is the limit of Long data type.
Please note that if the layer order in the TOC of the original map is changed or if layers are added/removed, the IDs will change accordingly.
getID in interface IMapLayerInfogetID in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
getName in interface IMapLayerInfogetName in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDescription()
throws IOException,
AutomationException
getDescription in interface IMapLayerInfogetDescription in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getType()
throws IOException,
AutomationException
getType in interface IMapLayerInfogetType in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getSourceDescription()
throws IOException,
AutomationException
With ArcGIS Server 9.3 release, this property is deprecated and always returns empty string.
getSourceDescription in interface IMapLayerInfogetSourceDescription in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasLabels()
throws IOException,
AutomationException
isHasLabels in interface IMapLayerInfoisHasLabels in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanSelect()
throws IOException,
AutomationException
isCanSelect in interface IMapLayerInfoisCanSelect in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanScaleSymbols()
throws IOException,
AutomationException
isCanScaleSymbols in interface IMapLayerInfoisCanScaleSymbols in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanIdentify()
throws IOException,
AutomationException
isCanIdentify in interface IMapLayerInfoisCanIdentify in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanFind()
throws IOException,
AutomationException
isCanFind in interface IMapLayerInfoisCanFind in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isFeatureLayer()
throws IOException,
AutomationException
isFeatureLayer in interface IMapLayerInfoisFeatureLayer in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getMinScale()
throws IOException,
AutomationException
getMinScale in interface IMapLayerInfogetMinScale in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getMaxScale()
throws IOException,
AutomationException
getMaxScale in interface IMapLayerInfogetMaxScale in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getExtent()
throws IOException,
AutomationException
getExtent in interface IMapLayerInfogetExtent in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasHyperlinks()
throws IOException,
AutomationException
isHasHyperlinks in interface IMapLayerInfoisHasHyperlinks in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasAttributes()
throws IOException,
AutomationException
isHasAttributes in interface IMapLayerInfoisHasAttributes in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IFields getFields()
throws IOException,
AutomationException
getFields in interface IMapLayerInfogetFields in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDisplayField()
throws IOException,
AutomationException
getDisplayField in interface IMapLayerInfogetDisplayField in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isComposite()
throws IOException,
AutomationException
isComposite in interface IMapLayerInfoisComposite in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILongArray getSubLayers()
throws IOException,
AutomationException
getSubLayers in interface IMapLayerInfogetSubLayers in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getParentLayerID()
throws IOException,
AutomationException
getParentLayerID in interface IMapLayerInfogetParentLayerID in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStringArray getFieldAliases()
throws IOException,
AutomationException
getFieldAliases in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCopyrightText()
throws IOException,
AutomationException
getCopyrightText in interface IMapLayerInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void serialize(IXMLSerializeData data)
throws IOException,
AutomationException
serialize in interface IXMLSerializedata - 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 IXMLSerializedata - 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 IPersistStreamIOException - 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 IPersistStreampstm - 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 IPersistStreampstm - 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 IPersistStreampcbSize - 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 IPersistpClassID - 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 void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||