Package org.web3d.x3d.sai
Class X3DFieldEvent
java.lang.Object
java.util.EventObject
org.web3d.x3d.sai.X3DFieldEvent
- All Implemented Interfaces:
Serializable
The event type is implemented as the class X3DFieldEvent. This class contains methods for obtaining the source of the event, the time (in X3D time) and any user defined data that occurred with the event.
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
Package hint: This specification class is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the
org.web3d.x3d.jsail
classes.
Package hint: This specification class is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
Passed field data for this eventprotected double
The time stamp, in X3D time, that this event occurred atFields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionX3DFieldEvent
(Object sourceField, double newTimeStamp, Object neweventDataObject) Construct a new X3DFieldEvent instance. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
timeStamp
protected double timeStampThe time stamp, in X3D time, that this event occurred at -
eventDataObject
Passed field data for this event
-
-
Constructor Details
-
X3DFieldEvent
Construct a new X3DFieldEvent instance.- Parameters:
sourceField
- The source field that generated this eventnewTimeStamp
- The timestamp of the event, in X3D timeneweventDataObject
- Any user associated data with this event
-
-
Method Details
-
getTime
public double getTime()Get the timestamp that this event occurred at.- Returns:
- The time of this event, in X3D time coordinates.
-
getData
-