com.esri.adf.web.ags.data.edit.action
Class MoveFeature
java.lang.Object
com.esri.adf.web.ags.data.edit.EditAction
com.esri.adf.web.ags.data.edit.action.MoveFeature
- All Implemented Interfaces:
- Serializable
public class MoveFeature
- extends EditAction
Move the selected features to the given position.
SelectByExtent select = new SelectByExtent(EditUtil.toEnvelope(-2309712.539, -887434.291, -1023725.086, 411499.344, map
.getSpatialReference(), ctx));
MoveFeature move = new MoveFeature(EditUtil.toILine(-2309712.539, -887434.291, -1023725.086, 411499.344, map
.getSpatialReference(), ctx));
workspace.perform(context, select, move);
The feature may fire the following events:
PreFeatureStoreEvent
FeatureChangedEvent
- See Also:
- Serialized Form
Constructor Summary |
MoveFeature(com.esri.arcgis.geometry.ILine offset)
Instantiates an object of MoveFeature. |
Method Summary |
void |
action(ActionContext context)
Performs the action. |
com.esri.arcgis.geometry.ILine |
getOffset()
Gets the offset of the moved feature. |
void |
setOffset(com.esri.arcgis.geometry.ILine offset)
Sets the offset of the moved feature. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveFeature
public MoveFeature(com.esri.arcgis.geometry.ILine offset)
- Instantiates an object of MoveFeature.
- Parameters:
offset
- the offset of the moved feature.
getOffset
public com.esri.arcgis.geometry.ILine getOffset()
- Gets the offset of the moved feature.
- Returns:
- Returns the offset.
setOffset
public void setOffset(com.esri.arcgis.geometry.ILine offset)
- Sets the offset of the moved 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