javax.media
Class Time

java.lang.Object
  extended by javax.media.Time
All Implemented Interfaces:
java.io.Serializable

public class Time
extends java.lang.Object
implements java.io.Serializable

Standard JMF class -- see this class in the JMF Javadoc. Complete.

Author:
Ken Larson
See Also:
Serialized Form

Field Summary
protected  long nanoseconds
           
static long ONE_SECOND
           
static Time TIME_UNKNOWN
           
 
Constructor Summary
Time(double seconds)
           
Time(long nanoseconds)
           
 
Method Summary
 long getNanoseconds()
           
 double getSeconds()
           
protected  long secondsToNanoseconds(double seconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE_SECOND

public static final long ONE_SECOND
See Also:
Constant Field Values

TIME_UNKNOWN

public static final Time TIME_UNKNOWN

nanoseconds

protected long nanoseconds
Constructor Detail

Time

public Time(long nanoseconds)

Time

public Time(double seconds)
Method Detail

secondsToNanoseconds

protected long secondsToNanoseconds(double seconds)

getNanoseconds

public long getNanoseconds()

getSeconds

public double getSeconds()