quicktime.std.clocks
Class RateCallBack
java.lang.Object
|
+--quicktime.QTObject
|
+--quicktime.std.clocks.QTCallBack
|
+--quicktime.std.clocks.RateCallBack
- All Implemented Interfaces:
- quicktime.jdirect.InterfaceLib, quicktime.jdirect.PrimitivesLib, quicktime.jdirect.QuickTimeLib, quicktime.jdirect.SharedLibrary, com.apple.jdirect.SharedLibrary
- public abstract class RateCallBack
- extends QTCallBack
Provides scheduled operations with time base time rate changes.
Field Summary |
int |
flags
Determines when the callback will be called. |
float |
rate
Determines the rate that is used in the callback. |
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Constructor Summary |
RateCallBack(TimeBase tb,
float rate,
int flags)
Creates a new callback event that will invoke its Callback object when the rate of the
specified timebase reaches a certain value. |
Method Summary |
void |
callMeWhen()
Makes the callback active. |
java.lang.String |
toString()
String representation of this class. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
rate
public float rate
- Determines the rate that is used in the callback. Default is 1.0.
flags
public int flags
- Determines when the callback will be called.
RateCallBack
public RateCallBack(TimeBase tb,
float rate,
int flags)
throws QTException
- Creates a new callback event that will invoke its Callback object when the rate of the
specified timebase reaches a certain value.
The callback is not active until you schedule it by calling the callMeWhen method.
QuickTime::NewCallBack()
- Parameters:
tb
- the time base that the callback is attached too.rate
- the specified rate which will invoke the Callbackflags
- the conditions under which the Callback will be executed
callMeWhen
public final void callMeWhen()
throws StdQTException
- Makes the callback active.
The rate value should be set before this method is called.
QuickTime::CallMeWhen
- Overrides:
callMeWhen
in class QTCallBack
Following copied from class: quicktime.std.clocks.QTCallBack
- Parameters:
cb
- CallBack interface who's execute method will be called when the callback becomes active.
toString
public java.lang.String toString()
- String representation of this class.
- Overrides:
toString
in class QTCallBack