synergynetframework.jme.cursorsystem.elements.twod
Class TwoDQuadWithMultiTouchInteraction

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
          extended by synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
              extended by synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScaleWithListener
                  extended by synergynetframework.jme.cursorsystem.elements.twod.TwoDQuadWithMultiTouchInteraction

public class TwoDQuadWithMultiTouchInteraction
extends OrthoControlPointRotateTranslateScaleWithListener

The Class TwoDQuadWithMultiTouchInteraction.


Nested Class Summary
 
Nested classes/interfaces inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScaleWithListener
OrthoControlPointRotateTranslateScaleWithListener.OrthoControlPointRotateTranslateScaleListener
 
Nested classes/interfaces inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener
 
Field Summary
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
TwoDQuadWithMultiTouchInteraction(DrawableSpatialImage pickingAndTargetSpatial, java.awt.Rectangle interactArea)
          Instantiates a new two d quad with multi touch interaction.
 
Method Summary
 void cursorChanged(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor changed.
 void cursorClicked(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor clicked.
 void cursorPressed(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor pressed.
 void cursorReleased(ScreenCursor c, MultiTouchCursorEvent event)
          Cursor released.
 java.awt.Point getCurrentElement2DCoordsForCursor(ScreenCursor cursor)
          Gets the current element2 d coords for cursor.
 
Methods inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScaleWithListener
addMultiTouchListener, enableRotateTranslateScale, getDragDistanceFromCursorPressedEvent, getLastChangedEvent, getLastClickedEvent, getLastPressedEvent, getLastReleasedEvent, getProperty, isRotateTranslateScaleEnabled, removeMultiTouchListener, removeMultiTouchListeners, setLastChangedEvent, setLastClickedEvent, setLastPressedEvent, setLastReleasedEvent, setProperty
 
Methods inherited from class synergynetframework.jme.cursorsystem.elements.twod.OrthoControlPointRotateTranslateScale
addRotateTranslateScaleListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, getScaleMax, getScaleMin, removeRotateTranslateScaleListener, setRotateLimits, setScaleLimits
 
Methods inherited from class synergynetframework.jme.cursorsystem.TwoDMultiTouchElement
getCursorScreenPositionAtPick, getPickDataForCursorID, getPickResultFromCursorIndex, getSpatial2DWorldPositionAtPick, registerScreenCursor
 
Methods inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
addWorldCursorRecord, getCurrentScreenAngleDifferenceFromOrigin, getCurrentScreenCursorsAngle, getCurrentTargetSpatialRotationFromCursorChange, getName, getNumRegisteredCursors, getOriginScreenCursorsAngle, getPickingSpatial, getScaleAtOrigin, getScreenCursorByID, getScreenCursorByIndex, getScreenCursorOriginForCursorID, getTargetSpatial, getTranslationAtOrigin, getWorldLocations, isActive, isPickMeOnly, registerScreenCursor, setActive, setName, setPickMeOnly, unregisterScreenCursor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoDQuadWithMultiTouchInteraction

public TwoDQuadWithMultiTouchInteraction(DrawableSpatialImage pickingAndTargetSpatial,
                                         java.awt.Rectangle interactArea)
Instantiates a new two d quad with multi touch interaction.

Parameters:
pickingAndTargetSpatial - the picking and target spatial
interactArea - the interact area
Method Detail

cursorChanged

public void cursorChanged(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor changed.

Overrides:
cursorChanged in class OrthoControlPointRotateTranslateScaleWithListener
Parameters:
c - the c
event - the event

cursorClicked

public void cursorClicked(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor clicked.

Overrides:
cursorClicked in class OrthoControlPointRotateTranslateScaleWithListener
Parameters:
c - the c
event - the event

cursorPressed

public void cursorPressed(ScreenCursor c,
                          MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor pressed.

Overrides:
cursorPressed in class OrthoControlPointRotateTranslateScaleWithListener
Parameters:
c - the c
event - the event

cursorReleased

public void cursorReleased(ScreenCursor c,
                           MultiTouchCursorEvent event)
Description copied from class: MultiTouchElement
Cursor released.

Overrides:
cursorReleased in class OrthoControlPointRotateTranslateScaleWithListener
Parameters:
c - the c
event - the event

getCurrentElement2DCoordsForCursor

public java.awt.Point getCurrentElement2DCoordsForCursor(ScreenCursor cursor)
Gets the current element2 d coords for cursor.

Parameters:
cursor - the cursor
Returns:
the current element2 d coords for cursor