public class GlobalMouse3DTranslateHandler extends Global3DHandler
m_active, m_canvas
Constructor and Description |
---|
GlobalMouse3DTranslateHandler(MM3DCanvas aCanvas)
Constructs the handler to work in the given canvas.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doAction(MMEvent event)
Calculates the distance dragged and uses it for translation.
|
void |
finish()
Adds a snapshot to the history of the canvas.
|
boolean |
userDefinedDealsWith(MMEvent anEvent)
Returns whether this instance
is able to work with the given
MMEvent . |
getCanvas3D
dealsWith, getCanvas, isActive, setActive
public GlobalMouse3DTranslateHandler(MM3DCanvas aCanvas)
public void finish()
finish
in class Global3DHandler
public boolean doAction(MMEvent event)
doAction
in class GlobalHandler
net.mumie.mathletfactory.action.handler.global.MMGlobalHandler#doAction(MMEvent)
public boolean userDefinedDealsWith(MMEvent anEvent)
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
Further documentation and examples can be found under www.mathletfactory.de.