net.sf.latexdraw.instruments
Class DnD2Translate
java.lang.Object
org.malai.instrument.Link<TranslateShapes,DnD,Hand>
net.sf.latexdraw.instruments.DnD2Translate
- All Implemented Interfaces:
- InteractionHandler
class DnD2Translate
- extends Link<TranslateShapes,DnD,Hand>
This link allows to translate the selected shapes.
Constructor Summary |
protected |
DnD2Translate(Hand hand,
boolean exec)
Initialises the link. |
Methods inherited from class org.malai.instrument.Link |
addEventable, clearEvents, createAction, getAction, getInstrument, getInteraction, interactionAborts, interactionStarts, interactionStops, interactionUpdates, isActivated, isExecute, isInteractionMustBeAborted, isRunnable, isRunning, setActivated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DnD2Translate
protected DnD2Translate(Hand hand,
boolean exec)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
- Initialises the link.
- Parameters:
hand
- The hand.exec
- True: the action is executed at each update of the interaction.
- 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<TranslateShapes,DnD,Hand>
updateAction
public void updateAction()
- Description copied from class:
Link
- Updates the current action. To override.
- Overrides:
updateAction
in class Link<TranslateShapes,DnD,Hand>
isConditionRespected
public boolean isConditionRespected()
- Specified by:
isConditionRespected
in class Link<TranslateShapes,DnD,Hand>
- Returns:
- True if the condition of the link is respected.
interimFeedback
public void interimFeedback()
- Description copied from class:
Link
- Defines the interim feedback of the link. If overridden, the interim
feedback of its instrument should be define too.
- Overrides:
interimFeedback
in class Link<TranslateShapes,DnD,Hand>