net.sf.latexdraw.instruments
Class DnD2Select

java.lang.Object
  extended by org.malai.instrument.Link<SelectShapes,DnD,Hand>
      extended by net.sf.latexdraw.instruments.DnD2Select
All Implemented Interfaces:
InteractionHandler

 class DnD2Select
extends Link<SelectShapes,DnD,Hand>

This link allows to select several shapes.


Field Summary
protected  java.awt.geom.Rectangle2D selectionBorder
          The is rectangle is used as interim feedback to show the rectangle made by the user to select some shapes.
 
Fields inherited from class org.malai.instrument.Link
action, clazzAction, execute, instrument, interaction
 
Constructor Summary
protected DnD2Select(Hand hand, boolean exec)
          Initialises the link.
 
Method Summary
 void initAction()
          After being created by method createAction, the action must be initialised by this method.
 void interimFeedback()
          Defines the interim feedback of the link.
 boolean isConditionRespected()
           
 void updateAction()
          Updates the current action.
 
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
 

Field Detail

selectionBorder

protected java.awt.geom.Rectangle2D selectionBorder
The is rectangle is used as interim feedback to show the rectangle made by the user to select some shapes.

Constructor Detail

DnD2Select

protected DnD2Select(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
Method Detail

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<SelectShapes,DnD,Hand>

updateAction

public void updateAction()
Description copied from class: Link
Updates the current action. To override.

Overrides:
updateAction in class Link<SelectShapes,DnD,Hand>

isConditionRespected

public boolean isConditionRespected()
Specified by:
isConditionRespected in class Link<SelectShapes,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<SelectShapes,DnD,Hand>