Class X3DFieldEvent

All Implemented Interfaces:

public class X3DFieldEvent extends EventObject
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 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 Details

    • timeStamp

      protected double timeStamp
      The time stamp, in X3D time, that this event occurred at
    • eventDataObject

      protected Object eventDataObject
      Passed field data for this event
  • Constructor Details

    • X3DFieldEvent

      public X3DFieldEvent(Object sourceField, double newTimeStamp, Object neweventDataObject)
      Construct a new X3DFieldEvent instance.
      sourceField - The source field that generated this event
      newTimeStamp - The timestamp of the event, in X3D time
      neweventDataObject - Any user associated data with this event
  • Method Details

    • getTime

      public double getTime()
      Get the timestamp that this event occurred at.
      The time of this event, in X3D time coordinates.
    • getData

      public Object getData()
      Get data with this event.