Package vrml
Class Event
java.lang.Object
vrml.Event
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
The name of the field that has changedprotected double
Timestamp of when this field changedprotected ConstField
value of the field -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
name
The name of the field that has changed -
timestamp
protected double timestampTimestamp of when this field changed -
value
value of the field
-
-
Constructor Details
-
Event
public Event()
-
-
Method Details
-
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
Get the value of the field that has just changed.- Returns:
- A representation of the field value
-
clone
Clone the object to create an identical copy.- Overrides:
clone
in classObject
- Returns:
- A complete copy of the event.
- Throws:
CloneNotSupportedException
- Cloning does not work for this class.
-