net.sf.latexdraw.instruments
Class Border.DnD2MovePoint
java.lang.Object
org.malai.instrument.Link<MovePointShape,DnD,Border>
net.sf.latexdraw.instruments.Border.DnD2MovePoint
- All Implemented Interfaces:
- InteractionHandler
- Enclosing class:
- Border
private static class Border.DnD2MovePoint
- extends Link<MovePointShape,DnD,Border>
This link maps a DnD interaction on a move point handler to an action that moves the selected point.
Field Summary |
protected IPoint |
sourcePt
The original coordinates of the moved point. |
Methods inherited from class org.malai.instrument.Link |
addEventable, clearEvents, createAction, getAction, getInstrument, getInteraction, interactionAborts, interactionStarts, interactionStops, interactionUpdates, interimFeedback, isActivated, isExecute, isInteractionMustBeAborted, isRunnable, isRunning, setActivated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourcePt
protected IPoint sourcePt
- The original coordinates of the moved point.
Border.DnD2MovePoint
protected Border.DnD2MovePoint(Border ins)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
- Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
initAction
public void initAction()
- Description copied from class:
Link
- After being created by method createAction, the action must be initialised
by this method.
- Specified by:
initAction
in class Link<MovePointShape,DnD,Border>
updateAction
public void updateAction()
- Description copied from class:
Link
- Updates the current action. To override.
- Overrides:
updateAction
in class Link<MovePointShape,DnD,Border>
isConditionRespected
public boolean isConditionRespected()
- Specified by:
isConditionRespected
in class Link<MovePointShape,DnD,Border>
- Returns:
- True if the condition of the link is respected.
getMovePtHandler
private MovePtHandler getMovePtHandler()
- Returns:
- The selected move point handler or null.
- Since:
- 3.0