net.sf.latexdraw.instruments
Class PencilLink<I extends Interaction>

java.lang.Object
  extended by org.malai.instrument.Link<AddShape,I,Pencil>
      extended by net.sf.latexdraw.instruments.PencilLink<I>
All Implemented Interfaces:
InteractionHandler
Direct Known Subclasses:
DnD2AddShape, MultiClic2AddShape, Press2AddShape

abstract class PencilLink<I extends Interaction>
extends Link<AddShape,I,Pencil>

This class defines a generic link for the pencil.

Since:
3.0
Version:
3.0
Author:
Arnaud Blouin

Field Summary
 
Fields inherited from class org.malai.instrument.Link
action, clazzAction, execute, instrument, interaction
 
Constructor Summary
protected PencilLink(Pencil ins, boolean exec, java.lang.Class<I> clazzInteraction)
          The constructor by default.
 
Method Summary
 void initAction()
          After being created by method createAction, the action must be initialised by this method.
 
Methods inherited from class org.malai.instrument.Link
addEventable, clearEvents, createAction, getAction, getInstrument, getInteraction, interactionAborts, interactionStarts, interactionStops, interactionUpdates, interimFeedback, isActivated, isConditionRespected, isExecute, isInteractionMustBeAborted, isRunnable, isRunning, setActivated, updateAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PencilLink

protected PencilLink(Pencil ins,
                     boolean exec,
                     java.lang.Class<I> clazzInteraction)
              throws java.lang.InstantiationException,
                     java.lang.IllegalAccessException
The constructor by default.

Parameters:
ins - The pencil.
exec - True: the action will be executed each time the interaction is updated.
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
Since:
3.0
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<AddShape,I extends Interaction,Pencil>