Xj3D 2.0 VRML/X3D Code API

vrml
Class Event

java.lang.Object
  extended by vrml.Event
All Implemented Interfaces:
java.lang.Cloneable

public class Event
extends java.lang.Object
implements java.lang.Cloneable

Java VRML97 script binding for event information

Version:
$Revision: 1.5 $
Author:
Alan Hudson, Justin Couch

Field Summary
protected  java.lang.String name
          The name of the field that has changed
protected  double timestamp
          Timestamp of when this field changed
protected  ConstField value
          value of the field
 
Constructor Summary
Event()
           
 
Method Summary
 java.lang.Object clone()
          Clone the object to create an identical copy.
 java.lang.String getName()
          Get the name of the field that generated this event
 double getTimeStamp()
          Get the timestamp for when this event occured.
 ConstField getValue()
          Get the value of the field that has just changed.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
The name of the field that has changed


timestamp

protected double timestamp
Timestamp of when this field changed


value

protected ConstField value
value of the field

Constructor Detail

Event

public Event()
Method Detail

getName

public java.lang.String getName()
Get the name of the field that generated this event

Returns:
the field name that has changed

getTimeStamp

public double getTimeStamp()
Get the timestamp for when this event occured. The value is a double representing values in seconds

Returns:
The current timestamp of the event

getValue

public ConstField getValue()
Get the value of the field that has just changed.

Returns:
A representation of the field value

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone the object to create an identical copy.

Overrides:
clone in class java.lang.Object
Returns:
A complete copy of the event.
Throws:
java.lang.CloneNotSupportedException - Cloning does not work for this class.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium