com.esri.adf.web.ags.data.edit.action
Class MoveFeature

java.lang.Object
  extended by com.esri.adf.web.ags.data.edit.EditAction
      extended by 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

    Field Summary
     
    Fields inherited from class com.esri.adf.web.ags.data.edit.EditAction
    eventListeners
     
    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 com.esri.adf.web.ags.data.edit.EditAction
    addEventListener, fireEvent, isEnabled, isSessionAware, removeEventListener, setEnabled, setSessionAware
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    MoveFeature

    public MoveFeature(com.esri.arcgis.geometry.ILine offset)
    Instantiates an object of MoveFeature.

    Parameters:
    offset - the offset of the moved feature.
    Method Detail

    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