Xj3D 2.0 VRML/X3D Code API

vrml.eai.event
Class VrmlEvent

java.lang.Object
  extended by vrml.eai.event.VrmlEvent

public class VrmlEvent
extends java.lang.Object

The event that is generated when an eventOut changes a value.

Version:
1.0 7th march

Constructor Summary
VrmlEvent(BaseField src, double ts, java.lang.Object data)
          Construct a new event instance.
 
Method Summary
 java.lang.Object getData()
          Get any user associated data with this eventIn/Out.
 BaseField getSource()
          Get the source field of this event.
 double getTime()
          Get the timestamp that this event occured at
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VrmlEvent

public VrmlEvent(BaseField src,
                 double ts,
                 java.lang.Object data)
Construct a new event instance.

Parameters:
src - The source field that generated this event
ts - The timestamp of the event, In VRML time.
data - Any user associated data with this event
Method Detail

getSource

public BaseField getSource()
Get the source field of this event.

Returns:
A reference to the eventIn/Out that generated this event.

getTime

public double getTime()
Get the timestamp that this event occured at

Returns:
The time of this event, in VRML time coordinates.

getData

public java.lang.Object getData()
Get any user associated data with this eventIn/Out.

Returns:
A reference to user associated data

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium