|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.behaviour.MoveVertexBehaviour.PositionTracker
public class MoveVertexBehaviour.PositionTracker
Constructor Summary | |
---|---|
MoveVertexBehaviour.PositionTracker(Point closestPoint,
Point dragStarted,
Selection selection,
java.util.Map<EditGeom,java.lang.Boolean> dirtyStatesBeforeMove,
boolean doValidation)
|
Method Summary | |
---|---|
Point |
get()
|
UndoableMapCommand |
getCommand(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
The action to be performed by this EventBehaviour. |
java.lang.Object |
getKey(EditToolHandler handler)
If the object returned by getKey() is the same as the object that the EditToolHandler
has as its lock this object may unlock the EditToolHandler and is also permitted
to run. |
void |
handleError(EditToolHandler handler,
java.lang.Throwable error,
UndoableMapCommand command)
This method is called if an exception occurs during the execution of the run method. |
boolean |
isValid(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
Called to determine whether this EventBehaviour is applicable and should be run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MoveVertexBehaviour.PositionTracker(Point closestPoint, Point dragStarted, Selection selection, java.util.Map<EditGeom,java.lang.Boolean> dirtyStatesBeforeMove, boolean doValidation)
Method Detail |
---|
public boolean isValid(EditToolHandler handler, MapMouseEvent e, EventType eventType)
EventBehaviour
isValid
in interface EventBehaviour
handler
- handler that calls this Behavioure
- mouse event that just occurred.eventType
- the type of event that just occurred
public UndoableMapCommand getCommand(EditToolHandler handler, MapMouseEvent e, EventType eventType)
EventBehaviour
getCommand
in interface EventBehaviour
handler
- handler that calls this Behavioure
- Event that occurred.eventType
- The type of event that has occurred
public void handleError(EditToolHandler handler, java.lang.Throwable error, UndoableMapCommand command)
EventBehaviour
This method should
handleError
in interface EventBehaviour
handler
- handler that calls this Behaviourerror
- Error that occurredcommand
- Command retrieved from getCommandMethod. May be null if exception occurred while
executing getCommand();public Point get()
public java.lang.Object getKey(EditToolHandler handler)
LockingBehaviour
EditToolHandler
has as its lock this object may unlock the EditToolHandler and is also permitted
to run.
getKey
in interface LockingBehaviour
handler
- handler that is calling getKey.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |