apps.threedmanipulation.gestures
Interface ControlPanelMoveRotateScale.RotateTranslateScaleListener
- Enclosing class:
- ControlPanelMoveRotateScale
public static interface ControlPanelMoveRotateScale.RotateTranslateScaleListener
The listener interface for receiving rotateTranslateScale events. The
class that is interested in processing a rotateTranslateScale event
implements this interface, and the object created with that class is
registered with a component using the component's
addRotateTranslateScaleListener method. When
the rotateTranslateScale event occurs, that object's appropriate
method is invoked.
- See Also:
RotateTranslateScaleEvent
Method Summary |
void |
itemMoved(ControlPanelMoveRotateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newLocationX,
float newLocationY,
float oldLocationX,
float oldLocationY)
Item moved. |
void |
itemRotated(ControlPanelMoveRotateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newAngle,
float oldAngle)
Item rotated. |
void |
itemScaled(ControlPanelMoveRotateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float scaleChange)
Item scaled. |
itemMoved
void itemMoved(ControlPanelMoveRotateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newLocationX,
float newLocationY,
float oldLocationX,
float oldLocationY)
- Item moved.
- Parameters:
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialnewLocationX
- the new location xnewLocationY
- the new location yoldLocationX
- the old location xoldLocationY
- the old location y
itemRotated
void itemRotated(ControlPanelMoveRotateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float newAngle,
float oldAngle)
- Item rotated.
- Parameters:
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialnewAngle
- the new angleoldAngle
- the old angle
itemScaled
void itemScaled(ControlPanelMoveRotateScale multiTouchElement,
com.jme.scene.Spatial targetSpatial,
float scaleChange)
- Item scaled.
- Parameters:
multiTouchElement
- the multi touch elementtargetSpatial
- the target spatialscaleChange
- the scale change