de.jreality.scene.event
Class SceneGraphComponentEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.jreality.scene.event.SceneEvent
          extended by de.jreality.scene.event.SceneGraphComponentEvent
All Implemented Interfaces:
Serializable

public class SceneGraphComponentEvent
extends SceneEvent

Author:
holger
See Also:
Serialized Form

Field Summary
static int CHILD_TYPE_APPEARANCE
           
static int CHILD_TYPE_AUDIONODE
           
static int CHILD_TYPE_CAMERA
           
static int CHILD_TYPE_COMPONENT
           
static int CHILD_TYPE_GEOMETRY
           
static int CHILD_TYPE_LIGHT
           
static int CHILD_TYPE_NONE
           
static int CHILD_TYPE_TRANSFORMATION
           
static int EVENT_TYPE_ADDED
           
static int EVENT_TYPE_PICKABILITY_CHANGED
           
static int EVENT_TYPE_REMOVED
           
static int EVENT_TYPE_REPLACED
           
static int EVENT_TYPE_VISIBILITY_CHANGED
           
 
Constructor Summary
SceneGraphComponentEvent(SceneGraphComponent source, int type)
           
SceneGraphComponentEvent(SceneGraphComponent source, int evType, int childNodeType, SceneGraphNode oldChild, SceneGraphNode newChild, int index)
           
SceneGraphComponentEvent(SceneGraphComponent source, int childNodeType, SceneGraphNode oldChild, SceneGraphNode newChild)
           
 
Method Summary
 int getChildIndex()
          Returns the childIndex or 0 for singleton child types.
 int getChildType()
          Get the CHILD_TYPE_xxx constant reflecting the current modification.
 int getEventType()
          Get the event type either added, removed or replaced.
 SceneGraphNode getNewChildElement()
          Get the new child for added or replaced or null for removed.
 SceneGraphNode getOldChildElement()
          Get the new child for removed or replaced or null for added.
 SceneGraphComponent getSceneGraphComponent()
           
 
Methods inherited from class de.jreality.scene.event.SceneEvent
getSourceNode
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHILD_TYPE_APPEARANCE

public static final int CHILD_TYPE_APPEARANCE
See Also:
Constant Field Values

CHILD_TYPE_CAMERA

public static final int CHILD_TYPE_CAMERA
See Also:
Constant Field Values

CHILD_TYPE_COMPONENT

public static final int CHILD_TYPE_COMPONENT
See Also:
Constant Field Values

CHILD_TYPE_GEOMETRY

public static final int CHILD_TYPE_GEOMETRY
See Also:
Constant Field Values

CHILD_TYPE_LIGHT

public static final int CHILD_TYPE_LIGHT
See Also:
Constant Field Values

CHILD_TYPE_TRANSFORMATION

public static final int CHILD_TYPE_TRANSFORMATION
See Also:
Constant Field Values

CHILD_TYPE_AUDIONODE

public static final int CHILD_TYPE_AUDIONODE
See Also:
Constant Field Values

CHILD_TYPE_NONE

public static final int CHILD_TYPE_NONE
See Also:
Constant Field Values

EVENT_TYPE_ADDED

public static final int EVENT_TYPE_ADDED
See Also:
Constant Field Values

EVENT_TYPE_REMOVED

public static final int EVENT_TYPE_REMOVED
See Also:
Constant Field Values

EVENT_TYPE_REPLACED

public static final int EVENT_TYPE_REPLACED
See Also:
Constant Field Values

EVENT_TYPE_VISIBILITY_CHANGED

public static final int EVENT_TYPE_VISIBILITY_CHANGED
See Also:
Constant Field Values

EVENT_TYPE_PICKABILITY_CHANGED

public static final int EVENT_TYPE_PICKABILITY_CHANGED
See Also:
Constant Field Values
Constructor Detail

SceneGraphComponentEvent

public SceneGraphComponentEvent(SceneGraphComponent source,
                                int evType,
                                int childNodeType,
                                SceneGraphNode oldChild,
                                SceneGraphNode newChild,
                                int index)

SceneGraphComponentEvent

public SceneGraphComponentEvent(SceneGraphComponent source,
                                int childNodeType,
                                SceneGraphNode oldChild,
                                SceneGraphNode newChild)

SceneGraphComponentEvent

public SceneGraphComponentEvent(SceneGraphComponent source,
                                int type)
Method Detail

getChildIndex

public int getChildIndex()
Returns the childIndex or 0 for singleton child types.


getSceneGraphComponent

public SceneGraphComponent getSceneGraphComponent()

getChildType

public int getChildType()
Get the CHILD_TYPE_xxx constant reflecting the current modification.


getEventType

public int getEventType()
Get the event type either added, removed or replaced.


getNewChildElement

public SceneGraphNode getNewChildElement()
Get the new child for added or replaced or null for removed.


getOldChildElement

public SceneGraphNode getOldChildElement()
Get the new child for removed or replaced or null for added.