public class GlobalKeyboard3DRotateXYHandler extends Global3DHandler
m_active, m_canvas
Constructor and Description |
---|
GlobalKeyboard3DRotateXYHandler(MM3DCanvas canvas)
Constructs the handler to work in the given canvas.
|
Modifier and Type | Method and Description |
---|---|
boolean |
doAction(MMEvent event)
Rotates the scene the set angle about the world transformed view x and y coordinates.
|
void |
finish()
Adds a snapshot to the history of the canvas.
|
GlobalKeyboard3DRotateXYHandler |
setAngleInDegree(double anAngle)
Sets the angle the scene is rotated for every key press.
|
boolean |
userDefinedDealsWith(MMEvent event)
Returns whether this instance
is able to work with the given
MMEvent . |
getCanvas3D
dealsWith, getCanvas, isActive, setActive
public GlobalKeyboard3DRotateXYHandler(MM3DCanvas canvas)
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 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 GlobalKeyboard3DRotateXYHandler setAngleInDegree(double anAngle)
Further documentation and examples can be found under www.mathletfactory.de.