|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.networkanalyst.NALayer
public class NALayer
The layer for defining, solving, and viewing network analysis results.
NALayer is a composite layer that holds a reference to the NAContext and exposes the NAClasses within the NAContext as feature layers.
The NALayer behaves like any other composite layer within ArcGIS. Use ICompositeLayer and ICompositeLayer2 to access these properties.
It is possible to find an NALayer in ArcMap by enumerating through the layers in the table of contents and checking to see which ones implement the interface INALayer. Or, you can determine the NALayer currently selected in the network analyst window by asking the NAWindow for its ActiveAnalysis.
The entire NAContext, including the contents of the NAClasses, is persisted within the NALayer. If there are a lot of NALocationFeatures in the NAContext, the size of the NALayer saved in a map document and in a layer file could be large. The NATraversalResult is not persisted within the NALayer.
In ArcGIS Server, starting a MapServer with multiple pooled objects that contain NALayers may cause some NALayers to not bind to their internal network dataset due to contention opening the network dataset. By default, the NALayer retries connecting to the network dataset for 60 seconds before returning a failure. If 60 seconds is not the appropriate amount of time for your server, create a registry key named "HKEY_LOCAL_MACHINE\Software\ESRI\ArcServer\NetworkAnalyst\OpenTimeout" of type DWORD with a decimal value between 0 and 600 which specifies the amount of time you would like to retry opening the network dataset before failing. A value of 600 would mean keep trying to open the network analysis layer's network dataset for 10 minutes before failing. Setting it to 0 would indicate to fail immediately if it could not connect to the network dataset on it's first attempt. This is only applicable to ArcGIS Server MapServer objects containing NALayers.
| Constructor Summary | |
|---|---|
NALayer()
Constructs a NALayer using ArcGIS Engine. |
|
NALayer(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. NALayer theNALayer = (NALayer) obj; |
|
| Method Summary | |
|---|---|
void |
add(ILayer layer)
Add a new layer. |
void |
addExtension(Object ext)
Adds a new extension. |
void |
addILayerEventsListener(ILayerEvents theListener)
addILayerEventsListener. |
void |
addINALayerEventsListener(INALayerEvents theListener)
addINALayerEventsListener. |
void |
addStandaloneTable(IStandaloneTable table)
Adds a standalone table to the collection. |
void |
attachContext(INAContext nAContext)
Sets the NALayer to reference the NAContext and the sublayers to reference the NAClasses of the NAContext. |
void |
clear()
Clear all analysis layers. |
boolean |
connect(IName pOptRepairName)
Connects the layer to its data source. |
INAContext |
copyContext()
Returns a copy of the NAContext referenced by the NALayer. |
void |
delete(ILayer layer)
Delete an existing layer. |
void |
disconnect()
Disconnects the data from the layer. |
void |
draw(int drawPhase,
IDisplay display,
ITrackCancel trackCancel)
Draws the layer to the specified display for the given draw phase. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
void |
expandRegionForSymbols(IDisplay pDisplay,
IGeometry pRegion)
Enlarges the specified region if necessary to account for the symbology sizes. |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
int |
findDataLayerByNAClassName(String name)
The index of the named datalayer in the collection of DataLayers of the network analysis layer. |
int |
getAllDataLayerCount()
The total number of data layers (layers and standalone tables) in the network analysis layer. |
int |
getAllLayerCount()
The total number of layers in the network analysis layer. |
int |
getAllStandaloneTableCount()
The total number of standalone tables in the network analysis layer. |
IEnvelope |
getAreaOfInterest()
The default area of interest for the layer. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
INAContext |
getContext()
The network analysis context. |
int |
getCount()
Number of layers in the collection. |
String |
getDataDetails(String bsPadding)
Details of the layer's data. |
IDataLayer |
getDataLayer(int index)
The datalayer at the specified index in the collection of DataLayers of the network analysis layer. |
IDataLayer |
getDataLayerByNAClassName(String name)
The network analysis layer or standalone table by class name. |
IName |
getDataSourceName()
Name of the data object for the layer. |
Object |
getExtension(int index)
The extension at the specified index. |
int |
getExtensionCount()
Number of extensions. |
IEnvelope |
getExtent()
The extent of the GeoDataset. |
int |
getLargeImage()
Large image that represents the layer. |
int |
getLargeSelectedImage()
Large image that represents the layer when it is selected. |
double |
getLastMaximumScale()
Last maximum scale setting used by layer. |
double |
getLastMinimumScale()
Last minimum scale setting used by layer. |
ILayer |
getLayer(int index)
Layer in the collection at the specified index. |
ILayer |
getLayerByNAClassName(String name)
The network analysis layer by class name. |
double |
getLayerWeight()
Default layer position. |
int |
getMapLevel()
Current map level for drawing multi-level symbols. |
double |
getMaximumScale()
Maximum scale (representative fraction) at which the layer will display. |
double |
getMinimumScale()
Minimum scale (representative fraction) at which the layer will display. |
String |
getName()
Layer name. |
String |
getPublishingDescription()
The layer description reported to the publisher. |
String |
getRelativeBase()
Base path used when storing relative path names. |
void |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
int |
getSmallImage()
Small image that represents the layer. |
int |
getSmallSelectedImage()
Small image that represents the layer when it is selected. |
ISpatialReference |
getSpatialReference()
The spatial reference of the GeoDataset. |
IStandaloneTable |
getStandaloneTable(int index)
The standalone table at the given index. |
int |
getStandaloneTableCount()
Number of standalone tables. |
int |
getSupportedDrawPhases()
Supported draw phases. |
String |
getTipText(double x,
double y,
double tolerance)
Map tip text at the specified location. |
int |
hashCode()
the hashcode for this object |
IArray |
identify(IGeometry pGeom)
Identifies objects at the specified location. |
IArray |
identify(IGeometry pGeom,
ITrackCancel pTrackCancel)
Identifies objects at the specified location. |
String |
ILayerGeneralProperties_getLayerDescription()
Description for the layer. |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
inWorkspace(IWorkspace workspace)
Returns TRUE if the layer is in the specified workspace. |
boolean |
isAccessible(int index)
Indicates whether the datalayer at the specified index in the collection of DataLayers of the network analysis layer is accessible by ICompositeLayer methods. |
boolean |
isCached()
Indicates if the layer needs its own display cache. |
boolean |
isCanRestrictAccessibility(int index)
Indicates whether the datalayer at the specified index in the collection of DataLayers of the network analysis layer can be hidden from ICompositeLayer methods. |
boolean |
isDataSourceSupported(IName name)
Indicates if the specified data object name is supported by the layer. |
boolean |
isDataValid()
Indicates if the data for the layer is currently valid. |
void |
isDirty()
isDirty |
boolean |
isDoesBlending()
Indicates whether the drawing object blends its output with the background. |
boolean |
isDrawingPropsDirty()
Indicates if the layer drawing properties are dirty. |
boolean |
isExpanded()
Indicates if the network analysis layer is expanded or collapsed in the TOC of the map. |
boolean |
isRequiresBanding()
Indicates whether the output from the drawing object requires banding. |
boolean |
isScaleRangeReadOnly()
Indicates if the minimum and maximum scale range values are read-only. |
boolean |
isShowTips()
Indicates if the layer shows map tips. |
boolean |
isSupportsPublishing()
Indicates if the layer supports the publishing process. |
boolean |
isUsesFilter()
Indicates if the current object draws using a filter. |
boolean |
isUseSymbolLevels()
Indicates if symbol levels are used for drawing. |
boolean |
isValid()
Indicates if the layer is currently valid. |
boolean |
isVisible()
Indicates if the layer is currently visible. |
void |
load(IStream pstm)
load |
void |
prepareForPublishing()
Prepare the layer for the publishing process. |
void |
readExternal(ObjectInput in)
|
void |
removeAllStandaloneTables()
Removes all standalone tables from the collection. |
void |
removeExtension(int index)
Removes the specified extension. |
void |
removeILayerEventsListener(ILayerEvents theListener)
removeILayerEventsListener. |
void |
removeINALayerEventsListener(INALayerEvents theListener)
removeINALayerEventsListener. |
void |
removeStandaloneTable(IStandaloneTable table)
Removes the standalone table from the collection. |
void |
reorder(ILongArray reorderedIndices)
Reorders the data layers in the network analysis layer based on the input array containing the new datalayer index value for each current index. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
setAccessible(int index,
boolean flag)
Indicates whether the datalayer at the specified index in the collection of DataLayers of the network analysis layer is accessible by ICompositeLayer methods. |
void |
setAreaOfInterest(IEnvelope aoi)
The default area of interest for the layer. |
void |
setCached(boolean cached)
Indicates if the layer needs its own display cache. |
void |
setContextByRef(INAContext nAContext)
The network analysis context. |
void |
setDataSourceName(IName name)
Name of the data object for the layer. |
void |
setDrawingPropsDirty(boolean dirty)
Indicates if the layer drawing properties are dirty. |
void |
setExpanded(boolean expanded)
Indicates if the network analysis layer is expanded or collapsed in the TOC of the map. |
void |
setLayerDescription(String text)
Description for the layer. |
void |
setLayerWeight(double layerWeight)
Default layer position. |
void |
setMapLevel(int mapLevel)
Current map level for drawing multi-level symbols. |
void |
setMaximumScale(double maxScale)
Maximum scale (representative fraction) at which the layer will display. |
void |
setMinimumScale(double minScale)
Minimum scale (representative fraction) at which the layer will display. |
void |
setName(String name)
Layer name. |
void |
setRelativeBase(String basePath)
Base path used when storing relative path names. |
void |
setScale(double rhs1)
The current scale of the display. |
void |
setShowTips(boolean show)
Indicates if the layer shows map tips. |
void |
setSpatialReferenceByRef(ISpatialReference rhs1)
Spatial reference for the layer. |
void |
setUseSymbolLevels(boolean useSymbolLevels)
Indicates if symbol levels are used for drawing. |
void |
setVisible(boolean visible)
Indicates if the layer is currently visible. |
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 NALayer()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public NALayer(Object obj)
throws IOException
NALayer theNALayer = (NALayer) obj;
obj to NALayer.
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 void addILayerEventsListener(ILayerEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.carto.ILayerEvents interface.
IOException - If there are communications problems.
public void removeILayerEventsListener(ILayerEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.carto.ILayerEvents interface.
IOException - If there are communications problems.
public void addINALayerEventsListener(INALayerEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.networkanalyst.INALayerEvents interface.
IOException - If there are communications problems.
public void removeINALayerEventsListener(INALayerEvents theListener)
throws IOException
theListener - An object that implements the com.esri.arcgis.networkanalyst.INALayerEvents interface.
IOException - If there are communications problems.
public void setContextByRef(INAContext nAContext)
throws IOException,
AutomationException
Sets the NAContext associated with the NALayer. If this is done, it is also necessary to re-attach the sublayers to the NAClasses of the new NAContext as well.
Use INALayer2::AttachContext instead if you want to re-attach a context created with INALayer2::CopyContext since this will re-attach the sublayers for you.
setContextByRef in interface INALayernAContext - A reference to a com.esri.arcgis.networkanalyst.INAContext (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAContext getContext()
throws IOException,
AutomationException
Returns the NAContext associated with the NALayer.
getContext in interface INALayerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILayer getLayerByNAClassName(String name)
throws IOException,
AutomationException
getLayerByNAClassName in interface INALayername - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void add(ILayer layer)
throws IOException,
AutomationException
Adds a sublayer into the NALayer.
add in interface INALayerlayer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void delete(ILayer layer)
throws IOException,
AutomationException
Removes a sublayer from the NALayer.
delete in interface INALayerlayer - A reference to a com.esri.arcgis.carto.ILayer (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clear()
throws IOException,
AutomationException
Removes all of the sublayers from the NALayer.
clear in interface INALayerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isExpanded()
throws IOException,
AutomationException
Specifies if the NALayer is expanded.
isExpanded in interface ICompositeLayer2isExpanded in interface INALayerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setExpanded(boolean expanded)
throws IOException,
AutomationException
Specifies if the NALayer is expanded.
setExpanded in interface ICompositeLayer2setExpanded in interface INALayerexpanded - The expanded (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public INAContext copyContext()
throws IOException,
AutomationException
CopyContext makes a copy of the NALayer's NAContext that can later be re-applied to the NALayer. This method should only be used in conjunction with the AttachContext within Server or Engine applications.
copyContext in interface INALayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void attachContext(INAContext nAContext)
throws IOException,
AutomationException
AttachContext sets the NALayer's NAContext to be the input context and reconnects the NALayer's sublayers to the context.
You must first call INAContextEdit.Bind on the NAContext prior to passing it in to AttachContext.
This method should only be used with NAContext objects created via INALayer2.CopyContext. It should also only be used within Server or Engine applications, using these functions within ArcMap will lead to unexpected behavior within the Network Analyst tools.
attachContext in interface INALayer2nAContext - A reference to a com.esri.arcgis.networkanalyst.INAContext (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataLayer getDataLayerByNAClassName(String name)
throws IOException,
AutomationException
getDataLayerByNAClassName in interface INALayer2name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAllDataLayerCount()
throws IOException,
AutomationException
getAllDataLayerCount in interface INALayer3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAllLayerCount()
throws IOException,
AutomationException
getAllLayerCount in interface INALayer3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getAllStandaloneTableCount()
throws IOException,
AutomationException
getAllStandaloneTableCount in interface INALayer3IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int findDataLayerByNAClassName(String name)
throws IOException,
AutomationException
findDataLayerByNAClassName in interface INALayer3name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IDataLayer getDataLayer(int index)
throws IOException,
AutomationException
getDataLayer in interface INALayer3index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanRestrictAccessibility(int index)
throws IOException,
AutomationException
isCanRestrictAccessibility in interface INALayer3index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isAccessible(int index)
throws IOException,
AutomationException
isAccessible in interface INALayer3index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAccessible(int index,
boolean flag)
throws IOException,
AutomationException
setAccessible in interface INALayer3index - The index (in)flag - The flag (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void reorder(ILongArray reorderedIndices)
throws IOException,
AutomationException
reorder in interface INALayer3reorderedIndices - A reference to a com.esri.arcgis.system.ILongArray (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getName()
throws IOException,
AutomationException
Use this property to associate a string with a layer.
getName in interface ILayergetName in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setName(String name)
throws IOException,
AutomationException
setName in interface ILayersetName in interface ILayer2name - The name (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isValid()
throws IOException,
AutomationException
The valid property indicates if the layer is currently valid. Layers that reference feature classes are valid when they hold a reference to a valid feature class. The property does not however validate the integrity of the feature classes reference to the database. Therefore, in rare situations if a datasource is removed after a layer is initialized, the layer will report itself as valid but query attempts to the data source will error due to the lack of underlying data.
isValid in interface ILayerisValid in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getAreaOfInterest()
throws IOException,
AutomationException
Returns the spatial-referenced extent of the layer.
getAreaOfInterest in interface ILayergetAreaOfInterest in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getMinimumScale()
throws IOException,
AutomationException
Specifies the minimum scale at which the layer will be displayed. This means that if you zoom out beyond this scale, the layer will not display. For example, specify 1000 to have the layer not display when zoomed out beyond 1:1000.
getMinimumScale in interface ILayergetMinimumScale in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMinimumScale(double minScale)
throws IOException,
AutomationException
setMinimumScale in interface ILayersetMinimumScale in interface ILayer2minScale - The minScale (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getMaximumScale()
throws IOException,
AutomationException
Specifies the maximum scale at which the layer will be displayed. This means that if you zoom in beyond this scale, the layer will not display. For example, specify 500 to have the layer not display when zoomed in beyond 1:500.
getMaximumScale in interface ILayergetMaximumScale in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMaximumScale(double maxScale)
throws IOException,
AutomationException
setMaximumScale in interface ILayersetMaximumScale in interface ILayer2maxScale - The maxScale (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isVisible()
throws IOException,
AutomationException
isVisible in interface ILayerisVisible in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setVisible(boolean visible)
throws IOException,
AutomationException
setVisible in interface ILayersetVisible in interface ILayer2visible - The visible (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowTips()
throws IOException,
AutomationException
Indicates whether or not map tips are shown for the layer. If set to True, then map tips will be shown for the layer. You can determine the text that will be shown via TipText. For a FeatureLayer, this text comes from the data for IFeatureLayer::DisplayField.
isShowTips in interface ILayerisShowTips in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowTips(boolean show)
throws IOException,
AutomationException
setShowTips in interface ILayersetShowTips in interface ILayer2show - The show (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getTipText(double x,
double y,
double tolerance)
throws IOException,
AutomationException
getTipText in interface ILayergetTipText in interface ILayer2x - The x (in)y - The y (in)tolerance - The tolerance (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCached()
throws IOException,
AutomationException
This property indicates whether or not the layer requires its own display cache. If this property is True, then the Map will use a separate display cache for the layer so that it can be refreshed indpendently of other layers.
The Map is responsible for cache management. See IScreenDisplay::AddCache for more information on caches.
isCached in interface ILayerisCached in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCached(boolean cached)
throws IOException,
AutomationException
Informational property. Container is responsible for cache management.
setCached in interface ILayersetCached in interface ILayer2cached - The cached (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSupportedDrawPhases()
throws IOException,
AutomationException
Indicates the draw phases supported by the layer (esriDPGeography, esriDPAnnotation, esriDPSelection, or any combination of the three). The supported draw phases are defined by esriDrawPhase. When multiple draw phases are supported, the sum of the constants is used. For example, if SupportedDrawPhases = 3 then the layer supports drawing in the geography and annotation phases.
getSupportedDrawPhases in interface ILayergetSupportedDrawPhases in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setSpatialReferenceByRef(ISpatialReference rhs1)
throws IOException,
AutomationException
This property is only used for map display, setting this property does not change the spatial reference of the layer's underlying data. The ArcGIS framework uses this property to pass the spatial reference from the map to the layer in order to support on-the-fly projection.
setSpatialReferenceByRef in interface ILayersetSpatialReferenceByRef in interface ILayer2rhs1 - A reference to a com.esri.arcgis.geometry.ISpatialReference (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void draw(int drawPhase,
IDisplay display,
ITrackCancel trackCancel)
throws IOException,
AutomationException
This method draws the layer to the Display for the specified DrawPhase. Use the TrackCancel object to allow the drawing of the layer to be interrupted by the user.
draw in interface ILayerdraw in interface ILayer2drawPhase - A com.esri.arcgis.system.esriDrawPhase constant (in)display - A reference to a com.esri.arcgis.display.IDisplay (in)trackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isScaleRangeReadOnly()
throws IOException,
AutomationException
Some layer types do not support a writeable MinimumScale or MaximumScale. Use this property to determine whether or not a layer supports this.
isScaleRangeReadOnly in interface ILayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setAreaOfInterest(IEnvelope aoi)
throws IOException,
AutomationException
setAreaOfInterest in interface ILayer2aoi - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSmallImage()
throws IOException,
AutomationException
The icon used to represent the layer in ArcCatalog's 'List' and 'Details' views.
getSmallImage in interface ILayerInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getSmallSelectedImage()
throws IOException,
AutomationException
The icon used to represent the layer when it is selected in ArcCatalog's 'List' and 'Details' views.
getSmallSelectedImage in interface ILayerInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLargeImage()
throws IOException,
AutomationException
The icon used to represent the layer in ArcCatalog's 'Large Icon' view.
getLargeImage in interface ILayerInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getLargeSelectedImage()
throws IOException,
AutomationException
The icon used to represent the layer when it is selected in ArcCatalog's 'Large Icon' view.
getLargeSelectedImage in interface ILayerInfoIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getExtensionCount()
throws IOException,
AutomationException
getExtensionCount in interface ILayerExtensionsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public Object getExtension(int index)
throws IOException,
AutomationException
getExtension in interface ILayerExtensionsindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addExtension(Object ext)
throws IOException,
AutomationException
addExtension in interface ILayerExtensionsext - A reference to another Object (IUnknown) (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeExtension(int index)
throws IOException,
AutomationException
removeExtension in interface ILayerExtensionsindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ISpatialReference getSpatialReference()
throws IOException,
AutomationException
This property is read only. For layers, when the first layer is added to ArcMap, its spatial reference is read by this property, and the map is set to this spatial reference.
Instances of the esriCarto.GroupLayer class will return null for this property, as a group layer can contain multiple datasets with different spatial references.
Modifications to a spatial reference returned by this property will not be persisted. To modify the spatial reference of a dataset, the IGeoDatasetSchemaEdit and IGeoDatasetSchemaEdit2 interfaces should be used.
getSpatialReference in interface IGeoDatasetIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnvelope getExtent()
throws IOException,
AutomationException
The IGeoDataset::Extent property returns an envelope representing the maximum extent of data which has been stored in the dataset.
Consider the following scenario. A new feature class has features added to it. The IGeoDataset::Extent is then requested and an envelope is returned. The extents of the envelope returned are represented by the red box in the image below.
If a portion of the features were then deleted and the extent is again requested an envelope with the exact same extents as during the first request would be returned (see image below). This is because the deletion of features does not shrink the extent. However all additions of features outside the red box would increase the envelope returned to encompass the newly added features.
If you would like to update the IGeoDataset::Extent property to reflect the current features in your dataset please see IFeatureClassManage::UpdateExtent (also see IFeatureClassLoad). In the image below the extent has been updated and a new envelope is being returned.
ESRI's GroupLayer implements this property differently from most other layer coclasses. When you instantiate a new GroupLayer, this property will return a valid envelope with zero height and width. With most other newly instantiated layers (for example FeatureLayer, RasterLayer, TinLayer), this property initally returns Nothing.
getExtent in interface IGeoDatasetIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IName getDataSourceName()
throws IOException,
AutomationException
getDataSourceName in interface IDataLayergetDataSourceName in interface IDataLayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDataSourceName(IName name)
throws IOException,
AutomationException
setDataSourceName in interface IDataLayersetDataSourceName in interface IDataLayer2name - A reference to a com.esri.arcgis.system.IName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDataSourceSupported(IName name)
throws IOException,
AutomationException
isDataSourceSupported in interface IDataLayerisDataSourceSupported in interface IDataLayer2name - A reference to a com.esri.arcgis.system.IName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean connect(IName pOptRepairName)
throws IOException,
AutomationException
connect in interface IDataLayerconnect in interface IDataLayer2pOptRepairName - A reference to a com.esri.arcgis.system.IName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getRelativeBase()
throws IOException,
AutomationException
The RelativeBase property is used internally when persisting and loading documents with a relative path. When a document has been fully loaded the path is realized to a complete path.
getRelativeBase in interface IDataLayergetRelativeBase in interface IDataLayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setRelativeBase(String basePath)
throws IOException,
AutomationException
setRelativeBase in interface IDataLayersetRelativeBase in interface IDataLayer2basePath - The basePath (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void disconnect()
throws IOException,
AutomationException
disconnect in interface IDataLayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean inWorkspace(IWorkspace workspace)
throws IOException,
AutomationException
inWorkspace in interface IDataLayer2workspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getCount()
throws IOException,
AutomationException
Returns the count, or number of layers. Use the methods in the IGroupLayer interface to manage the contents of GroupLayers.
getCount in interface ICompositeLayergetCount in interface ICompositeLayer2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public ILayer getLayer(int index)
throws IOException,
AutomationException
getLayer in interface ICompositeLayergetLayer in interface ICompositeLayer2index - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getStandaloneTableCount()
throws IOException,
AutomationException
getStandaloneTableCount in interface IStandaloneTableCollectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStandaloneTable getStandaloneTable(int index)
throws IOException,
AutomationException
getStandaloneTable in interface IStandaloneTableCollectionindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addStandaloneTable(IStandaloneTable table)
throws IOException,
AutomationException
addStandaloneTable in interface IStandaloneTableCollectiontable - A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeStandaloneTable(IStandaloneTable table)
throws IOException,
AutomationException
removeStandaloneTable in interface IStandaloneTableCollectiontable - A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeAllStandaloneTables()
throws IOException,
AutomationException
removeAllStandaloneTables in interface IStandaloneTableCollectionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray identify(IGeometry pGeom)
throws IOException,
AutomationException
When the IIdentify interface is on a map layer, the Identify method returns an array of FeatureIdentifyObject objects.
On a FeatureIdentifyObject, you can do a QI to the IIdentifyObj interface to get more information about the identified feature. The IIdentifyObj interface returns the window handle, layer, and name of the feature; it has methods to flash the feature in the display and to display a context menu at the Identify location.
This method performs an identify operation with the provided geometry. When identifying layers, typically a small envelope is passed in rather than a point to account for differences in the precision of the display and the feature geometry.
identify in interface IIdentifypGeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IArray identify(IGeometry pGeom,
ITrackCancel pTrackCancel)
throws IOException,
AutomationException
When the IIdentify interface is on a map layer, the Identify method returns an array of FeatureIdentifyObject objects.
On a FeatureIdentifyObject, you can do a QI to the IIdentifyObj interface to get more information about the identified feature. The IIdentifyObj interface returns the window handle, layer, and name of the feature; it has methods to flash the feature in the display and to display a context menu at the Identify location.
This method performs an identify operation with the provided geometry. When identifying layers, typically a small envelope is passed in rather than a point to account for differences in the precision of the display and the feature geometry.
identify in interface IIdentify2pGeom - A reference to a com.esri.arcgis.geometry.IGeometry (in)pTrackCancel - A reference to a com.esri.arcgis.system.ITrackCancel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setScale(double rhs1)
throws IOException,
AutomationException
setScale in interface IIdentify2rhs1 - The rhs1 (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUsesFilter()
throws IOException,
AutomationException
The UsesFilter property returns true when the object in question will draw with a filter. Drawing with a filter means means that an object that would normally draw as vector graphics will instead draw as raster. The UsesFilter property is particularly useful for detecting vector map layers that will be rasterized at time of print or export.
isUsesFilter in interface IDisplayAdminisUsesFilter in interface IDisplayAdmin2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isRequiresBanding()
throws IOException,
AutomationException
isRequiresBanding in interface IDisplayAdmin2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDoesBlending()
throws IOException,
AutomationException
isDoesBlending in interface IDisplayAdmin2IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getLayerWeight()
throws IOException,
AutomationException
The LayerWeight property defines the weight of the layer in the auto arrange order. During auto arrange, the higher weight layers are added to the map first, which means they draw lower in the draw order.
Default weights for layers are these values:
Annotation layers = 97
Points layers = 98
Polyline layers = 99
Polygon Layers = 100
getLayerWeight in interface ILayerPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLayerWeight(double layerWeight)
throws IOException,
AutomationException
setLayerWeight in interface ILayerPositionlayerWeight - The layerWeight (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getMapLevel()
throws IOException,
AutomationException
getMapLevel in interface IMapLevelIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMapLevel(int mapLevel)
throws IOException,
AutomationException
setMapLevel in interface IMapLevelmapLevel - The mapLevel (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDrawingPropsDirty()
throws IOException,
AutomationException
isDrawingPropsDirty in interface ILayerDrawingPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDrawingPropsDirty(boolean dirty)
throws IOException,
AutomationException
setDrawingPropsDirty in interface ILayerDrawingPropertiesdirty - The dirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getLastMinimumScale()
throws IOException,
AutomationException
getLastMinimumScale in interface ILayerGeneralPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public double getLastMaximumScale()
throws IOException,
AutomationException
getLastMaximumScale in interface ILayerGeneralPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String ILayerGeneralProperties_getLayerDescription()
throws IOException,
AutomationException
ILayerGeneralProperties_getLayerDescription in interface ILayerGeneralPropertiesIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setLayerDescription(String text)
throws IOException,
AutomationException
setLayerDescription in interface ILayerGeneralPropertiestext - The text (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void expandRegionForSymbols(IDisplay pDisplay,
IGeometry pRegion)
throws IOException,
AutomationException
expandRegionForSymbols in interface ILayerSymbologyExtentspDisplay - A reference to a com.esri.arcgis.display.IDisplay (in)pRegion - A reference to a com.esri.arcgis.geometry.IGeometry (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isUseSymbolLevels()
throws IOException,
AutomationException
isUseSymbolLevels in interface ISymbolLevelsIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setUseSymbolLevels(boolean useSymbolLevels)
throws IOException,
AutomationException
setUseSymbolLevels in interface ISymbolLevelsuseSymbolLevels - The useSymbolLevels (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isSupportsPublishing()
throws IOException,
AutomationException
isSupportsPublishing in interface IPublishLayerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getPublishingDescription()
throws IOException,
AutomationException
getPublishingDescription in interface IPublishLayerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isDataValid()
throws IOException,
AutomationException
isDataValid in interface IPublishLayerIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDataDetails(String bsPadding)
throws IOException,
AutomationException
getDataDetails in interface IPublishLayerbsPadding - The bsPadding (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void prepareForPublishing()
throws IOException,
AutomationException
prepareForPublishing in interface IPublishLayerIOException - 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 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 enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws IOException,
AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void interfaceSupportsErrorInfo(GUID riid)
throws IOException,
AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
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 | ||||||||