Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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, com.apple.jdirect.SharedLibrary, quicktime.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 class quicktime.std.clocks.QTCallBack
`rateWhenCalled, timeWhenCalledMsecs, upp`

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 quicktime.std.clocks.QTCallBack
`cancel, cancelAndCleanup, execute, getTimeBase, getType`

Methods inherited from class quicktime.QTObject
`disposeQTObject, equals, ID`

Methods inherited from class java.lang.Object
`getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### 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.

Constructor Detail

### 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 Callback
  `flags` - the conditions under which the Callback will be executed

Method Detail

### 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`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD