|
|||||||||
| 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. |
String |
getEndTimeFieldName()
End time field for the table. |
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. |
ITimeExtent |
getFullTimeExtent()
The time extent for all the data in the table. |
int |
getHTMLPopupType()
Indicates if the layer has HTML popups enabled. |
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. |
String |
getOIDFieldName()
The name of the OID Field. |
int |
getParentLayerID()
If the layer is a member of a composite layer, this property identifies the parent layer. |
IRelateInfos |
getRelateInfos()
Array of relates associated to the table. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getSourceDescription()
The description of the source information for the layer. |
String |
getStartTimeFieldName()
Name of the field that has start time or time instant for a table. |
ILongArray |
getSubLayers()
The list identifying the sublayers if the layer is a composite layer. |
double |
getTimeInterval()
Suggested draw time interval for refreshing the table contents. |
int |
getTimeIntervalUnits()
Draw time interval units. |
ITimeReference |
getTimeReference()
Native TimeReference of the contents of the table. |
String |
getTimeValueFormat()
Time field(s) values format. |
String |
getTrackIDFieldName()
Field that identifies or groups unique objects for which time values are recorded in a table. |
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 |
isCanModifyDrawingDescription()
Indicate whether DrawingDescription can be modified. |
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 |
isHasAttachments()
Indicates if the layer has attachments. |
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. |
boolean |
isHasLayerDrawingDescription()
Indicates if the layter has LayerDrawingDescription or not. |
boolean |
isHasLiveData()
Indicates whether the layer is being updated frequently with new data. |
boolean |
isHasSubtype()
Indicates if the layer has Subtype. |
boolean |
isSupportsAdvancedQueries()
Indicates if the table supports calculating advanced queries (i.e. |
boolean |
isSupportsStatistics()
Indicates if the table supports calculating statistics on its fields. |
boolean |
isSupportsTime()
Indicates whether the table supports time. |
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 for 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 IMapLayerInfo2getID in interface IMapLayerInfo3getID in interface IMapLayerInfo4getID in interface IMapTableInfogetID in interface IMapTableInfo2IOException - 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 IMapLayerInfo2getName in interface IMapLayerInfo3getName in interface IMapLayerInfo4getName in interface IMapTableInfogetName in interface IMapTableInfo2IOException - 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 IMapLayerInfo2getDescription in interface IMapLayerInfo3getDescription in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getType in interface IMapLayerInfo3getType in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getSourceDescription in interface IMapLayerInfo3getSourceDescription in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isHasLabels in interface IMapLayerInfo3isHasLabels in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isCanSelect in interface IMapLayerInfo3isCanSelect in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isCanScaleSymbols in interface IMapLayerInfo3isCanScaleSymbols in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isCanIdentify in interface IMapLayerInfo3isCanIdentify in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isCanFind in interface IMapLayerInfo3isCanFind in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isFeatureLayer in interface IMapLayerInfo3isFeatureLayer in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getMinScale in interface IMapLayerInfo3getMinScale in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getMaxScale in interface IMapLayerInfo3getMaxScale in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getExtent in interface IMapLayerInfo3getExtent in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isHasHyperlinks in interface IMapLayerInfo3isHasHyperlinks in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2isHasAttributes in interface IMapLayerInfo3isHasAttributes in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getFields in interface IMapLayerInfo3getFields in interface IMapLayerInfo4getFields in interface IMapTableInfogetFields in interface IMapTableInfo2IOException - 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 IMapLayerInfo2getDisplayField in interface IMapLayerInfo3getDisplayField in interface IMapLayerInfo4getDisplayField in interface IMapTableInfogetDisplayField in interface IMapTableInfo2IOException - 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 IMapLayerInfo2isComposite in interface IMapLayerInfo3isComposite in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getSubLayers in interface IMapLayerInfo3getSubLayers in interface IMapLayerInfo4IOException - 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 IMapLayerInfo2getParentLayerID in interface IMapLayerInfo3getParentLayerID in interface IMapLayerInfo4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStringArray getFieldAliases()
throws IOException,
AutomationException
getFieldAliases in interface IMapLayerInfo2getFieldAliases in interface IMapLayerInfo3getFieldAliases in interface IMapLayerInfo4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCopyrightText()
throws IOException,
AutomationException
getCopyrightText in interface IMapLayerInfo2getCopyrightText in interface IMapLayerInfo3getCopyrightText in interface IMapLayerInfo4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasLayerDrawingDescription()
throws IOException,
AutomationException
isHasLayerDrawingDescription in interface IMapLayerInfo3isHasLayerDrawingDescription in interface IMapLayerInfo4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasLiveData()
throws IOException,
AutomationException
isHasLiveData in interface IMapLayerInfo4IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanModifyDrawingDescription()
throws IOException,
AutomationException
Indicates whether MapServer allows the client to change the renderer for the layer dynamically without restarting a mapservice. MapServer currently supports only FeatureLayer for changing its renderer dynamically.
When Symbol Level Drawing is enabled on a group layer, then none of the sub layers in the group layer's renderer is allowed to be modified. But if Symbol Level Drawing is set on a feature layer, then dynamic rendering is enabled on the layer.
Please note that when IMapServerInfo4::SupportsDynamicLayers is False, this property for a layer will return False regardless of layer type or above rules.
isCanModifyDrawingDescription in interface IMapLayerInfo4IOException - 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 IRelateInfos getRelateInfos()
throws IOException,
AutomationException
In order for MapServer to advertise a relationship, both source and destination layer/standalone table must be added to the source map document. For example, Layer A is related to Table B in the GeoDatabase; Layer A is added to the map while Table B is not, in this scenario, MapServer will not publicize this relationship and therefore QueryRelatedRows function cannot be used to get related row(s) for feature from Layer A.
getRelateInfos in interface IMapTableInfogetRelateInfos in interface IMapTableInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasAttachments()
throws IOException,
AutomationException
isHasAttachments in interface IMapTableInfoisHasAttachments in interface IMapTableInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getHTMLPopupType()
throws IOException,
AutomationException
StandaloneTable does not support HTMLPopup
getHTMLPopupType in interface IMapTableInfogetHTMLPopupType in interface IMapTableInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getOIDFieldName()
throws IOException,
AutomationException
getOIDFieldName in interface IMapTableInfogetOIDFieldName in interface IMapTableInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isHasSubtype()
throws IOException,
AutomationException
Note: in case when the subtype field name is invisible in the source map document, HasSubtype will return False even though the layer has Subtypes.
isHasSubtype in interface IMapTableInfoisHasSubtype in interface IMapTableInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsStatistics()
throws IOException,
AutomationException
Limitations:
isSupportsStatistics in interface IMapTableInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsAdvancedQueries()
throws IOException,
AutomationException
When False, anything set to IQueryFilterDefinition2::PrefixClause or IQueryFilterDefinition2::PrefixClause gets igonred by MapServer query functions (QueryData etc.) that because the underlying datasource does not support that.
isSupportsAdvancedQueries in interface IMapTableInfo2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsTime()
throws IOException,
AutomationException
isSupportsTime in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getStartTimeFieldName()
throws IOException,
AutomationException
Time from this field is used to define when a feature/row is begun in case when the layer/table is time-enabled with two fields.
When a layer/table is time-enabled with single field, value in this field represents the moment the feature/row is recorded.
getStartTimeFieldName in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getEndTimeFieldName()
throws IOException,
AutomationException
getEndTimeFieldName in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getTimeValueFormat()
throws IOException,
AutomationException
Only application when a string or numeric field is used for time definition.
getTimeValueFormat in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getTrackIDFieldName()
throws IOException,
AutomationException
getTrackIDFieldName in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITimeReference getTimeReference()
throws IOException,
AutomationException
getTimeReference in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ITimeExtent getFullTimeExtent()
throws IOException,
AutomationException
getFullTimeExtent in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getTimeInterval()
throws IOException,
AutomationException
getTimeInterval in interface IMapTableTimeInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getTimeIntervalUnits()
throws IOException,
AutomationException
getTimeIntervalUnits in interface IMapTableTimeInfoIOException - 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 | ||||||||