net.refractions.udig.tools.edit.behaviour
Class MoveGeometryBehaviour

java.lang.Object
  extended by net.refractions.udig.tools.edit.behaviour.MoveVertexBehaviour
      extended by net.refractions.udig.tools.edit.behaviour.MoveGeometryBehaviour
All Implemented Interfaces:
EventBehaviour, LockingBehaviour

public class MoveGeometryBehaviour
extends MoveVertexBehaviour

Requirements:

Action:

Since:
1.1.0
Author:
jones

Nested Class Summary
 
Nested classes/interfaces inherited from class net.refractions.udig.tools.edit.behaviour.MoveVertexBehaviour
MoveVertexBehaviour.PositionTracker
 
Constructor Summary
MoveGeometryBehaviour()
           
 
Method Summary
protected  Selection getPointsToMove(EditToolHandler handler, EditBlackboard blackboard)
          Returns the points that will be moved.
protected  boolean isSnappingValid()
          Returns true if snapping should be used.
 boolean isValid(EditToolHandler handler, MapMouseEvent e, EventType eventType)
          Called to determine whether this EventBehaviour is applicable and should be run.
 
Methods inherited from class net.refractions.udig.tools.edit.behaviour.MoveVertexBehaviour
doMove, getCommand, getKey, handleError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveGeometryBehaviour

public MoveGeometryBehaviour()
Method Detail

isValid

public boolean isValid(EditToolHandler handler,
                       MapMouseEvent e,
                       EventType eventType)
Description copied from interface: EventBehaviour
Called to determine whether this EventBehaviour is applicable and should be run.

Specified by:
isValid in interface EventBehaviour
Overrides:
isValid in class MoveVertexBehaviour
Parameters:
handler - handler that calls this Behaviour
e - mouse event that just occurred.
eventType - the type of event that just occurred
Returns:
true if this mode is applicable and should be run.

getPointsToMove

protected Selection getPointsToMove(EditToolHandler handler,
                                    EditBlackboard blackboard)
Description copied from class: MoveVertexBehaviour
Returns the points that will be moved.

Overrides:
getPointsToMove in class MoveVertexBehaviour
Returns:
the points that will be moved.

isSnappingValid

protected boolean isSnappingValid()
Description copied from class: MoveVertexBehaviour
Returns true if snapping should be used.

Overrides:
isSnappingValid in class MoveVertexBehaviour
Returns: