|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.Time
Time
abstracts time in the Java Media framework.
Clock
,
TimeBase
Field Summary | |
protected long |
nanoseconds
Time is kept to a granularity of nanoseconds. |
static long |
ONE_SECOND
|
Constructor Summary | |
Time(double seconds)
Construct a time in seconds. |
|
Time(long nano)
Construct a time in nanoseconds. |
Method Summary | |
long |
getNanoseconds()
Get the time value in nanoseconds. |
double |
getSeconds()
Get the time value in seconds. |
protected long |
secondsToNanoseconds(double seconds)
Convert seconds to nanoseconds. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final long ONE_SECOND
protected long nanoseconds
Constructor Detail |
public Time(long nano)
nano
- Number of nanoseconds for this time.public Time(double seconds)
seconds
- Time specified in seconds.Method Detail |
protected long secondsToNanoseconds(double seconds)
public long getNanoseconds()
public double getSeconds()
|
JSR-927 (Maintenance Release) | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |