com.esri.adf.web.ags.data.edit.action
Class CopyFeature
java.lang.Object
com.esri.adf.web.ags.data.edit.EditAction
com.esri.adf.web.ags.data.edit.action.CopyFeature
- All Implemented Interfaces:
- Serializable
public class CopyFeature
- extends EditAction
Duplicates the selected features at the given position.
SelectByExtent select = new SelectByExtent(EditUtil.toEnvelope(-2309712.539, -887434.291, -1023725.086, 411499.344, map
.getSpatialReference(), ctx));
CopyFeature copy = new CopyFeature(EditUtil.toILine(-2309712.539, -887434.291, -1023725.086, 411499.344, map
.getSpatialReference(), ctx));
workspace.perform(context, select, copy);
The feature may fire the following events:
PreFeatureStoreEvent
FeatureCreatedEvent
- See Also:
- Serialized Form
Constructor Summary |
CopyFeature(com.esri.arcgis.geometry.ILine offset)
Instantiates an object of CopyFeature. |
Method Summary |
void |
action(ActionContext context)
Performs the action. |
com.esri.arcgis.geometry.ILine |
getOffset()
Gets the offset of the new feature. |
void |
setOffset(com.esri.arcgis.geometry.ILine offset)
Sets the offset of the new feature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyFeature
public CopyFeature(com.esri.arcgis.geometry.ILine offset)
- Instantiates an object of CopyFeature.
- Parameters:
offset
- the offset the copy.
getOffset
public com.esri.arcgis.geometry.ILine getOffset()
- Gets the offset of the new feature.
- Returns:
- Returns the offset.
setOffset
public void setOffset(com.esri.arcgis.geometry.ILine offset)
- Sets the offset of the new feature.
- Parameters:
offset
- The offset to set.
action
public void action(ActionContext context)
throws Exception
- Description copied from class:
EditAction
- Performs the action.
- Specified by:
action
in class EditAction
- Parameters:
context
- the action context.
- Throws:
Exception