|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEditLayers
Provides access to members that control information about layers in the edit session.
The IEditLayers interface is used to access information about layers involved in an edit session. For example, use IEditLayers to determine if a particular layer involved in an edit session is editable or not; in addition,
use IEditLayers to check or set the editor’s current layer and current subtype.
The current layer (or target layer) determines which layer will receive newly created features. Edit tasks and commands that create new features use this property to determine to which layer to write out the new features.
ISnapEnvironment
,
IFeatureLayer
,
IEditProperties
,
IEditTask.activate(com.esri.arcgis.editor.IEditor, com.esri.arcgis.editor.IEditTask)
,
IEditor
,
IEditLayers
,
IEditTask.deactivate()
,
IEditAttributeProperties
,
IEditEvents2
,
IEditTask.onFinishSketch()
,
IDatasetEdit
,
IDatasetEditInfo
,
IEditTask.onDeleteSketch()
,
IEditTask.getName()
,
IEditEvents
,
Editor
,
IEditSketch
Method Summary | |
---|---|
IFeatureLayer |
getCurrentLayer()
Indicates the editor's target layer which new features are added to. |
int |
getCurrentSubtype()
The sub type for new features in the CurrentLayer. |
boolean |
isEditable(IFeatureLayer layer)
Determines if a specific feature layer is editable. |
void |
setCurrentLayer(IFeatureLayer layer,
int subtype)
The editor's target layer and subtype for new features. |
Method Detail |
---|
void setCurrentLayer(IFeatureLayer layer, int subtype) throws IOException, AutomationException
layer
- A reference to a com.esri.arcgis.carto.IFeatureLayer (in)subtype
- The subtype (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IFeatureLayer getCurrentLayer() throws IOException, AutomationException
Use this property to check the editor's current layer. Use the SetCurrentLayer property to set the current layer. The current layer is the layer that new features are typically written to. For example, the CreateNewFeature Task, the Buffer command, and the CopyParallel command all create new features and store them in the current layer. Custom tools and tasks do not have to model this behavior. All layers that return TRUE for IsEditable, are editable simulataneously. To edit features in a particular layer, you do not have to call SetCurrentLayer method for that layer.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCurrentSubtype() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isEditable(IFeatureLayer layer) throws IOException, AutomationException
layer
- A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |