Class dnx.lr.NodeObserverEvent
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.NodeObserverEvent
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.util.DNXInstancedObject
|
+----dnx.util.DNXObserverEvent
|
+----dnx.lr.NodeObserverEvent
- public class NodeObserverEvent
- extends DNXObserverEvent
NodeObserverEvent encapsulates a notification of a change in a node.
Callers request notification of such events by becoming observers of the
node, through calling addObserver() on the Node.
NodeObserverEvents have three fields: a type (what happened) and a detail
field.
@see dnx.util.DNXObservable
@see dnx.util.DNXObserver
-
ADD_CHILD_EVENT
- A child was just added.
-
BOUNDING_BOX_CHANGED_EVENT
- The bounding box of a node changed.
-
DELETE_CHILD_EVENT
- A child is about to be deleted.
-
EVENT_OUT_CHANGED_EVENT
- An eventOut was modified.
-
EVENT_RECEIVED_EVENT
- A SceneEvent was received at an eventIn.
-
FIELD_CHANGED_EVENT
- A field was modified.
-
NodeObserverEvent(Node, int, Object)
-
-
getEventInfo()
- Return the detail of the event.
-
getEventTypeName()
-
-
getNode()
-
-
toString()
-
EVENT_RECEIVED_EVENT
public final static int EVENT_RECEIVED_EVENT
- A SceneEvent was received at an eventIn. The detail is a
SceneEvent.
FIELD_CHANGED_EVENT
public final static int FIELD_CHANGED_EVENT
- A field was modified. The detail is an Integer, the field index.
EVENT_OUT_CHANGED_EVENT
public final static int EVENT_OUT_CHANGED_EVENT
- An eventOut was modified. The detail is an Integer, the eventOut
index.
ADD_CHILD_EVENT
public final static int ADD_CHILD_EVENT
- A child was just added. The detail is a NodeChildChangeDetail.
DELETE_CHILD_EVENT
public final static int DELETE_CHILD_EVENT
- A child is about to be deleted. The detail is a
NodeChildChangeDetail.
BOUNDING_BOX_CHANGED_EVENT
public final static int BOUNDING_BOX_CHANGED_EVENT
- The bounding box of a node changed. The details is a new
BoundingBox3
NodeObserverEvent
public NodeObserverEvent(Node node,
int type,
Object info)
getNode
public Node getNode()
getEventTypeName
public String getEventTypeName()
getEventInfo
public Object getEventInfo()
- Return the detail of the event.
toString
public String toString()
- Overrides:
- toString in class DNXInstancedObject
All Packages Class Hierarchy This Package Previous Next Index