public class SceneGraphComponentEvent extends SceneEvent
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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() |
getSourceNode
getSource, toString
public static final int CHILD_TYPE_APPEARANCE
public static final int CHILD_TYPE_CAMERA
public static final int CHILD_TYPE_COMPONENT
public static final int CHILD_TYPE_GEOMETRY
public static final int CHILD_TYPE_LIGHT
public static final int CHILD_TYPE_TRANSFORMATION
public static final int CHILD_TYPE_AUDIONODE
public static final int CHILD_TYPE_NONE
public static final int EVENT_TYPE_ADDED
public static final int EVENT_TYPE_REMOVED
public static final int EVENT_TYPE_REPLACED
public static final int EVENT_TYPE_VISIBILITY_CHANGED
public static final int EVENT_TYPE_PICKABILITY_CHANGED
public SceneGraphComponentEvent(SceneGraphComponent source, int evType, int childNodeType, SceneGraphNode oldChild, SceneGraphNode newChild, int index)
public SceneGraphComponentEvent(SceneGraphComponent source, int childNodeType, SceneGraphNode oldChild, SceneGraphNode newChild)
public SceneGraphComponentEvent(SceneGraphComponent source, int type)
public int getChildIndex()
0
for singleton child types.public SceneGraphComponent getSceneGraphComponent()
public int getChildType()
public int getEventType()
public SceneGraphNode getNewChildElement()
null
for removed.public SceneGraphNode getOldChildElement()
null
for added.