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.
 

Method Detail

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 element
targetSpatial - the target spatial
newLocationX - the new location x
newLocationY - the new location y
oldLocationX - the old location x
oldLocationY - 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 element
targetSpatial - the target spatial
newAngle - the new angle
oldAngle - the old angle

itemScaled

void itemScaled(ControlPanelMoveRotateScale multiTouchElement,
                com.jme.scene.Spatial targetSpatial,
                float scaleChange)
Item scaled.

Parameters:
multiTouchElement - the multi touch element
targetSpatial - the target spatial
scaleChange - the scale change