synergynetframework.jme.cursorsystem.elements.twod
Class ClipRegistry

java.lang.Object
  extended by synergynetframework.jme.cursorsystem.elements.twod.ClipRegistry

public class ClipRegistry
extends java.lang.Object

The Class ClipRegistry.


Method Summary
 ClipRegion getClipRegionForSpatial(com.jme.scene.Spatial spatial)
          Gets the clip region for spatial.
 java.util.HashMap<com.jme.scene.Spatial,ClipRegion> getClipRegions()
          Gets the clip regions.
static ClipRegistry getInstance()
          Gets the single instance of ClipRegistry.
 boolean isRegistered(com.jme.scene.Spatial spatial)
          Checks if is registered.
 void registerClipRegion(com.jme.scene.Spatial spatial, ClipRegion clipRegion)
          Register clip region.
 void unregister(com.jme.scene.Spatial spatial)
          Unregister.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ClipRegistry getInstance()
Gets the single instance of ClipRegistry.

Returns:
single instance of ClipRegistry

getClipRegionForSpatial

public ClipRegion getClipRegionForSpatial(com.jme.scene.Spatial spatial)
Gets the clip region for spatial.

Parameters:
spatial - the spatial
Returns:
the clip region for spatial

getClipRegions

public java.util.HashMap<com.jme.scene.Spatial,ClipRegion> getClipRegions()
Gets the clip regions.

Returns:
the clip regions

isRegistered

public boolean isRegistered(com.jme.scene.Spatial spatial)
Checks if is registered.

Parameters:
spatial - the spatial
Returns:
true, if is registered

registerClipRegion

public void registerClipRegion(com.jme.scene.Spatial spatial,
                               ClipRegion clipRegion)
Register clip region.

Parameters:
spatial - the spatial
clipRegion - the clip region

unregister

public void unregister(com.jme.scene.Spatial spatial)
Unregister.

Parameters:
spatial - the spatial