|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 problemspublic 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 problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public 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 IMapLayerInfo
getID
in interface IMapLayerInfo2
getID
in interface IMapLayerInfo3
getID
in interface IMapLayerInfo4
getID
in interface IMapTableInfo
getID
in interface IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IMapLayerInfo
getName
in interface IMapLayerInfo2
getName
in interface IMapLayerInfo3
getName
in interface IMapLayerInfo4
getName
in interface IMapTableInfo
getName
in interface IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDescription() throws IOException, AutomationException
getDescription
in interface IMapLayerInfo
getDescription
in interface IMapLayerInfo2
getDescription
in interface IMapLayerInfo3
getDescription
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getType() throws IOException, AutomationException
getType
in interface IMapLayerInfo
getType
in interface IMapLayerInfo2
getType
in interface IMapLayerInfo3
getType
in interface IMapLayerInfo4
IOException
- 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 IMapLayerInfo
getSourceDescription
in interface IMapLayerInfo2
getSourceDescription
in interface IMapLayerInfo3
getSourceDescription
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasLabels() throws IOException, AutomationException
isHasLabels
in interface IMapLayerInfo
isHasLabels
in interface IMapLayerInfo2
isHasLabels
in interface IMapLayerInfo3
isHasLabels
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanSelect() throws IOException, AutomationException
isCanSelect
in interface IMapLayerInfo
isCanSelect
in interface IMapLayerInfo2
isCanSelect
in interface IMapLayerInfo3
isCanSelect
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanScaleSymbols() throws IOException, AutomationException
isCanScaleSymbols
in interface IMapLayerInfo
isCanScaleSymbols
in interface IMapLayerInfo2
isCanScaleSymbols
in interface IMapLayerInfo3
isCanScaleSymbols
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanIdentify() throws IOException, AutomationException
isCanIdentify
in interface IMapLayerInfo
isCanIdentify
in interface IMapLayerInfo2
isCanIdentify
in interface IMapLayerInfo3
isCanIdentify
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCanFind() throws IOException, AutomationException
isCanFind
in interface IMapLayerInfo
isCanFind
in interface IMapLayerInfo2
isCanFind
in interface IMapLayerInfo3
isCanFind
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isFeatureLayer() throws IOException, AutomationException
isFeatureLayer
in interface IMapLayerInfo
isFeatureLayer
in interface IMapLayerInfo2
isFeatureLayer
in interface IMapLayerInfo3
isFeatureLayer
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMinScale() throws IOException, AutomationException
getMinScale
in interface IMapLayerInfo
getMinScale
in interface IMapLayerInfo2
getMinScale
in interface IMapLayerInfo3
getMinScale
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMaxScale() throws IOException, AutomationException
getMaxScale
in interface IMapLayerInfo
getMaxScale
in interface IMapLayerInfo2
getMaxScale
in interface IMapLayerInfo3
getMaxScale
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IEnvelope getExtent() throws IOException, AutomationException
getExtent
in interface IMapLayerInfo
getExtent
in interface IMapLayerInfo2
getExtent
in interface IMapLayerInfo3
getExtent
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasHyperlinks() throws IOException, AutomationException
isHasHyperlinks
in interface IMapLayerInfo
isHasHyperlinks
in interface IMapLayerInfo2
isHasHyperlinks
in interface IMapLayerInfo3
isHasHyperlinks
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasAttributes() throws IOException, AutomationException
isHasAttributes
in interface IMapLayerInfo
isHasAttributes
in interface IMapLayerInfo2
isHasAttributes
in interface IMapLayerInfo3
isHasAttributes
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IFields getFields() throws IOException, AutomationException
getFields
in interface IMapLayerInfo
getFields
in interface IMapLayerInfo2
getFields
in interface IMapLayerInfo3
getFields
in interface IMapLayerInfo4
getFields
in interface IMapTableInfo
getFields
in interface IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDisplayField() throws IOException, AutomationException
getDisplayField
in interface IMapLayerInfo
getDisplayField
in interface IMapLayerInfo2
getDisplayField
in interface IMapLayerInfo3
getDisplayField
in interface IMapLayerInfo4
getDisplayField
in interface IMapTableInfo
getDisplayField
in interface IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isComposite() throws IOException, AutomationException
isComposite
in interface IMapLayerInfo
isComposite
in interface IMapLayerInfo2
isComposite
in interface IMapLayerInfo3
isComposite
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILongArray getSubLayers() throws IOException, AutomationException
getSubLayers
in interface IMapLayerInfo
getSubLayers
in interface IMapLayerInfo2
getSubLayers
in interface IMapLayerInfo3
getSubLayers
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getParentLayerID() throws IOException, AutomationException
getParentLayerID
in interface IMapLayerInfo
getParentLayerID
in interface IMapLayerInfo2
getParentLayerID
in interface IMapLayerInfo3
getParentLayerID
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IStringArray getFieldAliases() throws IOException, AutomationException
getFieldAliases
in interface IMapLayerInfo2
getFieldAliases
in interface IMapLayerInfo3
getFieldAliases
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCopyrightText() throws IOException, AutomationException
getCopyrightText
in interface IMapLayerInfo2
getCopyrightText
in interface IMapLayerInfo3
getCopyrightText
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasLayerDrawingDescription() throws IOException, AutomationException
isHasLayerDrawingDescription
in interface IMapLayerInfo3
isHasLayerDrawingDescription
in interface IMapLayerInfo4
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasLiveData() throws IOException, AutomationException
isHasLiveData
in interface IMapLayerInfo4
IOException
- 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 IMapLayerInfo4
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 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 IMapTableInfo
getRelateInfos
in interface IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isHasAttachments() throws IOException, AutomationException
isHasAttachments
in interface IMapTableInfo
isHasAttachments
in interface IMapTableInfo2
IOException
- 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 IMapTableInfo
getHTMLPopupType
in interface IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getOIDFieldName() throws IOException, AutomationException
getOIDFieldName
in interface IMapTableInfo
getOIDFieldName
in interface IMapTableInfo2
IOException
- 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 IMapTableInfo
isHasSubtype
in interface IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportsStatistics() throws IOException, AutomationException
Limitations:
isSupportsStatistics
in interface IMapTableInfo2
IOException
- 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 IMapTableInfo2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportsTime() throws IOException, AutomationException
isSupportsTime
in interface IMapTableTimeInfo
IOException
- 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 IMapTableTimeInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getEndTimeFieldName() throws IOException, AutomationException
getEndTimeFieldName
in interface IMapTableTimeInfo
IOException
- 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 IMapTableTimeInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTrackIDFieldName() throws IOException, AutomationException
getTrackIDFieldName
in interface IMapTableTimeInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeReference getTimeReference() throws IOException, AutomationException
getTimeReference
in interface IMapTableTimeInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ITimeExtent getFullTimeExtent() throws IOException, AutomationException
getFullTimeExtent
in interface IMapTableTimeInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getTimeInterval() throws IOException, AutomationException
getTimeInterval
in interface IMapTableTimeInfo
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTimeIntervalUnits() throws IOException, AutomationException
getTimeIntervalUnits
in interface IMapTableTimeInfo
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 |