public class GlobalKeyboardSelectionHandler extends GlobalHandler
MMCanvas
by using the
tabulator key or m_active, m_canvas
Constructor and Description |
---|
GlobalKeyboardSelectionHandler(MMCanvas canvas)
Constructs the handler to work in the given canvas.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doAction(MMEvent event)
Processes the incoming
MMEvent by executing the user defined actions,
if this GlobalHandler can work with it (see
dealsWith ). |
void |
finish()
This method is called, when an action finishes (a mouse button is released
after dragging or klicking, a previously pressed key is released, etc.).
|
boolean |
userDefinedDealsWith(MMEvent event)
Returns true for tab or
|
dealsWith, getCanvas, isActive, setActive
public GlobalKeyboardSelectionHandler(MMCanvas canvas)
public boolean doAction(MMEvent event)
GlobalHandler
MMEvent
by executing the user defined actions,
if this GlobalHandler
can work with it (see
dealsWith
).
doAction
in class GlobalHandler
GlobalHandler.dealsWith(net.mumie.mathletfactory.action.MMEvent)
,
net.mumie.mathletfactory.action.DefaultCanvasController#controlAction()
public boolean userDefinedDealsWith(MMEvent event)
userDefinedDealsWith
in class GlobalHandler
public void finish()
GlobalHandler
finishAction
method in CanvasControllerIF
.
GlobalHandler
,
so that it will be prepared for properly processing a new action cycle.finish
in class GlobalHandler
Further documentation and examples can be found under www.mathletfactory.de.