org.jdesktop.wonderland.client.scenemanager
Class DefaultSceneManagerPolicy

java.lang.Object
  extended by org.jdesktop.wonderland.client.scenemanager.DefaultSceneManagerPolicy
All Implemented Interfaces:
SceneManagerPolicy

public class DefaultSceneManagerPolicy
extends java.lang.Object
implements SceneManagerPolicy

Implements a simple selection policy based upon the JME input mechanism.

Author:
Jordan Slott

Constructor Summary
DefaultSceneManagerPolicy()
           
 
Method Summary
 long getHoverDelay()
          Returns the time (in milliseconds) between the current time and the last event which interrupts the hover before a hover action starts.
 boolean isActivation(Event event)
          Returns true if the event corresponds to an activation event.
 boolean isClearedSelection(Event event)
          Returns true if the event corresponds to clearing the selection.
 boolean isContext(Event event)
          Returns true if the event corresponds to a context event.
 boolean isEnter(Event event)
          Returns true if the event corresponds to an Entity enter event.
 boolean isExit(Event event)
          Returns true if the event corresponds to an Entity exit event.
 boolean isHoverInterrupt(Event event)
          Returns true if the event corresponds to any event that will interrupt a mouse hover.
 boolean isMultiSelection(Event event)
          Returns true if the event corresponds to a multi-selection event.
 boolean isSingleSelection(Event event)
          Returns true if the event corresponds to a single-select event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSceneManagerPolicy

public DefaultSceneManagerPolicy()
Method Detail

isClearedSelection

public boolean isClearedSelection(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to clearing the selection.

Specified by:
isClearedSelection in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event clears the selection

isSingleSelection

public boolean isSingleSelection(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to a single-select event.

Specified by:
isSingleSelection in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event is a single-selection event

isMultiSelection

public boolean isMultiSelection(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to a multi-selection event.

Specified by:
isMultiSelection in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event is a multi-selection event

isActivation

public boolean isActivation(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to an activation event.

Specified by:
isActivation in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event is an activation event

isHoverInterrupt

public boolean isHoverInterrupt(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to any event that will interrupt a mouse hover.

Specified by:
isHoverInterrupt in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event is a hover stop event

getHoverDelay

public long getHoverDelay()
Description copied from interface: SceneManagerPolicy
Returns the time (in milliseconds) between the current time and the last event which interrupts the hover before a hover action starts.

Specified by:
getHoverDelay in interface SceneManagerPolicy
Returns:
A time before the hover action starts

isContext

public boolean isContext(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to a context event.

Specified by:
isContext in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event is a context event

isEnter

public boolean isEnter(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to an Entity enter event.

Specified by:
isEnter in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event is an enter event

isExit

public boolean isExit(Event event)
Description copied from interface: SceneManagerPolicy
Returns true if the event corresponds to an Entity exit event.

Specified by:
isExit in interface SceneManagerPolicy
Parameters:
event - The input event
Returns:
True if the event is an exit event


Open Wonderland - http://openwonderland.org