public class Affine2DKeyboardGridTranslateHandler extends MMHandler
m_master, m_specialCaseListenersList
MAX_UPDATER_INVOCATION_COUNT
Constructor and Description |
---|
Affine2DKeyboardGridTranslateHandler(javax.swing.JComponent display) |
Affine2DKeyboardGridTranslateHandler(javax.swing.JComponent display,
double unit) |
Modifier and Type | Method and Description |
---|---|
double |
getUnitInMath()
Returns the width of a unit in the grid (in mathematical coordinates).
|
void |
setMaster(MMObjectIF master)
|
void |
setUnitInMath(double aValue)
Sets the width of a unit in the grid (in mathematical coordinates).
|
void |
userDefinedAction(MMEvent event)
Implement this method in the user specific implementation of a
MMHandler to describe what handler specific action should be done within the doAction
method of this
MMHandler . |
boolean |
userDefinedDealsWith(MMEvent event)
Implement this method in the user specific implementation of a
MMHandler to define on which MMEvents this MMHandler shall react. |
void |
userDefinedFinish()
Implement this method in the user specific implementation of a
MMHandler to define how this MMHandler must reset it's internal settings to be prepared for a new
action cycle. |
addSpecialCaseListener, clone, dealsWith, doAction, finish, fireSpecialCaseEvent, getDisplay, getMaster, isActive, isReDrawDuringAction, isUpdateDuringAction, setActive, setDisplay, setDrawDuringAction, setUpdateDuringAction
addInvokedUpdater, addObjectToRedraw, addUpdatableEntryObject, finishUpdaters, getActionCallCount, getEntryObject, getMaxUpdateInvocationCount, increaseActionCallCount, isUpdatableEntryObject, performActionCycleFromObject, performActionCycleFromObjects, redrawObjectsInCurrentCycle, reset, setEntryObject, setMaxUpdateInvocationCount
public Affine2DKeyboardGridTranslateHandler(javax.swing.JComponent display)
public Affine2DKeyboardGridTranslateHandler(javax.swing.JComponent display, double unit)
public void setMaster(MMObjectIF master)
MMHandler
master
to be the master MMObjectIF
of this MMHandler
. MMHandler
is added to a
MMObjectIF
(see addHandler
in MMObjectIF
for
more information on this issue).setMaster
in class MMHandler
InteractivityIF.addHandler(net.mumie.mathletfactory.action.handler.MMHandler)
public void userDefinedAction(MMEvent event)
MMHandler
MMHandler
to describe what handler specific action should be done within the doAction
method of this
MMHandler
.userDefinedAction
in class MMHandler
MMHandler.doAction(net.mumie.mathletfactory.action.MMEvent)
public void userDefinedFinish()
MMHandler
MMHandler
to define how this MMHandler
must reset it's internal settings to be prepared for a new
action cycle.userDefinedFinish
in class MMHandler
public boolean userDefinedDealsWith(MMEvent event)
MMHandler
MMHandler
to define on which MMEvents
this MMHandler
shall react.userDefinedDealsWith
in class MMHandler
public void setUnitInMath(double aValue)
public double getUnitInMath()
Further documentation and examples can be found under www.mathletfactory.de.