javax.media
Interface Clock

All Known Subinterfaces:
Controller, Player, Processor
All Known Implementing Classes:
AbstractClock, AbstractController, AbstractPlayer, AbstractProcessor, Handler, Handler, Handler

public interface Clock

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

Author:
Ken Larson

Field Summary
static Time RESET
           
 
Method Summary
 long getMediaNanoseconds()
           
 Time getMediaTime()
           
 float getRate()
           
 Time getStopTime()
           
 Time getSyncTime()
           
 TimeBase getTimeBase()
           
 Time mapToTimeBase(Time t)
           
 void setMediaTime(Time now)
           
 float setRate(float factor)
           
 void setStopTime(Time stopTime)
           
 void setTimeBase(TimeBase master)
           
 void stop()
           
 void syncStart(Time at)
           
 

Field Detail

RESET

static final Time RESET
Method Detail

setTimeBase

void setTimeBase(TimeBase master)
                 throws IncompatibleTimeBaseException
Throws:
IncompatibleTimeBaseException

syncStart

void syncStart(Time at)

stop

void stop()

setStopTime

void setStopTime(Time stopTime)

getStopTime

Time getStopTime()

setMediaTime

void setMediaTime(Time now)

getMediaTime

Time getMediaTime()

getMediaNanoseconds

long getMediaNanoseconds()

getSyncTime

Time getSyncTime()

getTimeBase

TimeBase getTimeBase()

mapToTimeBase

Time mapToTimeBase(Time t)
                   throws ClockStoppedException
Throws:
ClockStoppedException

getRate

float getRate()

setRate

float setRate(float factor)