camera3d.event
Class SceneObjectsChangedEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bycamera3d.event.VcEvent
          extended bycamera3d.event.SceneObjectsChangedEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InitialListEvent, ObjectAddedEvent, ObjectRemovedEvent

public class SceneObjectsChangedEvent
extends VcEvent

Event fired when a change is made to list of objects present in the scene graph.

Author:
Fábio Roberto de Miranda e Carlos da Silva dos Santos
See Also:
Serialized Form

Field Summary
static int OBJECT_ADDED
          Signals that the event was fired by the addition of one object to the scene.
static int OBJECT_REMOVED
          Signals that the event was fired by the removal of one object from the scene.
static int UNKNOWN_TYPE
          Signals that the action which fired the event is of unknown type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SceneObjectsChangedEvent(java.lang.Object source)
          Creates a new SceneChangedEvent.
SceneObjectsChangedEvent(java.lang.Object source, int type)
          Creates a new SceneChangeEvent and sets its type.
 
Method Summary
 int getType()
          Returns the type of action which fired the event.
 void setType(int type)
          Sets the type of action which fired the event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_TYPE

public static final int UNKNOWN_TYPE
Signals that the action which fired the event is of unknown type.

See Also:
Constant Field Values

OBJECT_ADDED

public static final int OBJECT_ADDED
Signals that the event was fired by the addition of one object to the scene.

See Also:
Constant Field Values

OBJECT_REMOVED

public static final int OBJECT_REMOVED
Signals that the event was fired by the removal of one object from the scene.

See Also:
Constant Field Values
Constructor Detail

SceneObjectsChangedEvent

public SceneObjectsChangedEvent(java.lang.Object source)
Creates a new SceneChangedEvent.

Parameters:
source - the object which originated the change in the scene

SceneObjectsChangedEvent

public SceneObjectsChangedEvent(java.lang.Object source,
                                int type)
Creates a new SceneChangeEvent and sets its type.

Parameters:
source - the object which originated the change in the scene.
type - identifies the type of action that fired the event.
Method Detail

getType

public int getType()
Returns the type of action which fired the event.

Returns:
Can be one of OBJECT_ADDED, OBJECT_REMOVED or UNKNOWN_TYPE.

setType

public void setType(int type)
Sets the type of action which fired the event.

Parameters:
type - Can be one of OBJECT_ADDED, OBJECT_REMOVED or UNKNOWN_TYPE.


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.