synergynetframework.jme.cursorsystem.elements.twod
Class OrthoBringToTop

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.MultiTouchElement
      extended by synergynetframework.jme.cursorsystem.elements.twod.OrthoBringToTop

public class OrthoBringToTop
extends MultiTouchElement

The Class OrthoBringToTop.


Nested Class Summary
static interface OrthoBringToTop.OrthoBringToTopListener
          The listener interface for receiving orthoBringToTop events.
 
Field Summary
static int bottomMost
          The bottom most.
static int topMost
          The top most.
 
Fields inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
AXIS_Z, DIRECTION_UP
 
Constructor Summary
OrthoBringToTop(com.jme.scene.Spatial spatial)
          Instantiates a new ortho bring to top.
OrthoBringToTop(com.jme.scene.Spatial pickingSpatial, com.jme.scene.Spatial targetSpatial)
          Instantiates a new ortho bring to top.
 
Method Summary
 void addOrthoBringToTopListener(OrthoBringToTop.OrthoBringToTopListener l)
          Adds the ortho bring to top listener.
 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.
static java.util.List<com.jme.scene.Spatial> getAllTopLevelContainersWithOrthoBringToTop()
          Gets the all top level containers with ortho bring to top.
 void removeOrthoBringToTopListener(OrthoBringToTop.OrthoBringToTopListener l)
          Removes the ortho bring to top listener.
static void setBottomMost(int i)
          Sets the bottom most.
 void setBottomObject(OrthoBringToTop orthoBringToTop, boolean enableBroadCast)
          Sets the bottom object.
static void setTopMost(int i)
          Sets the top most.
 void setTopObject(OrthoBringToTop orthoBringToTop, boolean enableBroadCast)
          Sets the top object.
static void unRegister(OrthoBringToTop orthoBringToTop)
          Un register.
static void unRegister(com.jme.scene.Spatial spatial)
          Un register.
 
Methods inherited from class synergynetframework.jme.cursorsystem.MultiTouchElement
addWorldCursorRecord, getCurrentScreenAngleDifferenceFromOrigin, getCurrentScreenCursorsAngle, getCurrentTargetSpatialRotationFromCursorChange, getName, getNumRegisteredCursors, getOriginScreenCursorsAngle, getPickDataForCursorID, getPickingSpatial, getPickResultFromCursorIndex, 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
 

Field Detail

bottomMost

public static int bottomMost
The bottom most.


topMost

public static int topMost
The top most.

Constructor Detail

OrthoBringToTop

public OrthoBringToTop(com.jme.scene.Spatial spatial)
Instantiates a new ortho bring to top.

Parameters:
spatial - the spatial

OrthoBringToTop

public OrthoBringToTop(com.jme.scene.Spatial pickingSpatial,
                       com.jme.scene.Spatial targetSpatial)
Instantiates a new ortho bring to top.

Parameters:
pickingSpatial - the picking spatial
targetSpatial - the target spatial
Method Detail

getAllTopLevelContainersWithOrthoBringToTop

public static java.util.List<com.jme.scene.Spatial> getAllTopLevelContainersWithOrthoBringToTop()
Gets the all top level containers with ortho bring to top.

Returns:
the all top level containers with ortho bring to top

setBottomMost

public static void setBottomMost(int i)
Sets the bottom most.

Parameters:
i - the new bottom most

setTopMost

public static void setTopMost(int i)
Sets the top most.

Parameters:
i - the new top most

unRegister

public static void unRegister(OrthoBringToTop orthoBringToTop)
Un register.

Parameters:
orthoBringToTop - the ortho bring to top

unRegister

public static void unRegister(com.jme.scene.Spatial spatial)
Un register.

Parameters:
spatial - the spatial

addOrthoBringToTopListener

public void addOrthoBringToTopListener(OrthoBringToTop.OrthoBringToTopListener l)
Adds the ortho bring to top listener.

Parameters:
l - the l

cursorChanged

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

Specified by:
cursorChanged in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorClicked

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

Specified by:
cursorClicked in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorPressed

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

Specified by:
cursorPressed in class MultiTouchElement
Parameters:
c - the c
event - the event

cursorReleased

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

Specified by:
cursorReleased in class MultiTouchElement
Parameters:
c - the c
event - the event

removeOrthoBringToTopListener

public void removeOrthoBringToTopListener(OrthoBringToTop.OrthoBringToTopListener l)
Removes the ortho bring to top listener.

Parameters:
l - the l

setBottomObject

public void setBottomObject(OrthoBringToTop orthoBringToTop,
                            boolean enableBroadCast)
Sets the bottom object.

Parameters:
orthoBringToTop - the ortho bring to top
enableBroadCast - the enable broad cast

setTopObject

public void setTopObject(OrthoBringToTop orthoBringToTop,
                         boolean enableBroadCast)
Sets the top object.

Parameters:
orthoBringToTop - the ortho bring to top
enableBroadCast - the enable broad cast