apps.threedmanipulation.gestures
Interface OjbectManipulationforCCTV.RotateTranslateScaleListener

Enclosing class:
OjbectManipulationforCCTV

public static interface OjbectManipulationforCCTV.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(OjbectManipulationforCCTV multiTouchElement, com.jme.scene.Spatial targetSpatial, float newLocationX, float newLocationY, float oldLocationX, float oldLocationY)
          Item moved.
 void itemRotated(OjbectManipulationforCCTV multiTouchElement, com.jme.scene.Spatial targetSpatial, float newAngle, float oldAngle)
          Item rotated.
 void itemScaled(OjbectManipulationforCCTV multiTouchElement, com.jme.scene.Spatial targetSpatial, float scaleChange)
          Item scaled.
 

Method Detail

itemMoved

void itemMoved(OjbectManipulationforCCTV 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(OjbectManipulationforCCTV 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(OjbectManipulationforCCTV multiTouchElement,
                com.jme.scene.Spatial targetSpatial,
                float scaleChange)
Item scaled.

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