Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

vrml.external.field
Class EventInMFTime  view EventInMFTime download EventInMFTime.java

java.lang.Object
  extended byvrml.external.field.EventIn
      extended byvrml.external.field.EventInMFTime

public class EventInMFTime
extends EventIn

Time values are represented as per the VRML IS specification Section 4.11 Time. That is, time is set as VRML "Time" - the number of seconds since Jan 1, 1970 GMT, rather than a Java time which is a long, the number of milliseconds since Jan 1, 1970 GMT. To convert between the two simply divide java time by 1000 and cast to a double. Note that in setting time values from an external application, the idea of the time that java represents and the time that the VRML world currently has set may well be different. It is best to source the current "time" from a node or eventOut in the VRML world rather than relying exclusively on the value returned from System.currentTimeMillies. This is especially important to note if you are dealing with high speed, narrow interval work such as controlling animation.


Constructor Summary
EventInMFTime()
           
 
Method Summary
 void set1Value(int index, double value)
           
 void setValue(double[] value)
           
 
Methods inherited from class vrml.external.field.EventIn
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventInMFTime

public EventInMFTime()
Method Detail

set1Value

public void set1Value(int index,
                      double value)

setValue

public void setValue(double[] value)