public class GlobalMouseWheelZoomHandler extends Global2DHandler
m_active, m_canvas
Constructor and Description |
---|
GlobalMouseWheelZoomHandler(MM2DCanvas aCanvas)
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.).
|
protected boolean |
userDefinedDealsWith(MMEvent event)
Returns whether this instance
is able to work with the given
MMEvent . |
getCanvas2D
dealsWith, getCanvas, isActive, setActive
public GlobalMouseWheelZoomHandler(MM2DCanvas aCanvas)
protected boolean userDefinedDealsWith(MMEvent event)
GlobalHandler
MMEvent
.
controlAction(MMEvent)
method of a CanvasControllerIF
(e.g. DefaultCanvasController
), to check
if this instance can be invoked by calling this GlobalHandler
's
doAction
method with the given MMEvent
.
false
if GlobalHandler.isActive()
returns false
, i.e. if this
GlobalHandler
was deactivated.userDefinedDealsWith
in class GlobalHandler
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 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.