Package apple.quartzcore.protocol
Interface CAMediaTiming
-
- All Known Implementing Classes:
AVCaptureVideoPreviewLayer,AVPlayerLayer,AVSampleBufferDisplayLayer,AVSynchronizedLayer,CAAnimation,CAAnimationGroup,CABasicAnimation,CAEAGLLayer,CAEmitterCell,CAEmitterLayer,CAGradientLayer,CAKeyframeAnimation,CALayer,CAMetalLayer,CAPropertyAnimation,CAReplicatorLayer,CAScrollLayer,CAShapeLayer,CASpringAnimation,CATextLayer,CATiledLayer,CATransformLayer,CATransition
public interface CAMediaTiming
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanautoreverses()When true, the object plays backwards after playing forwards.doublebeginTime()The begin time of the object, in relation to its parent object, if applicable.doubleduration()The basic duration of the object.java.lang.StringfillMode()Defines how the timed object behaves outside its active duration.floatrepeatCount()The repeat count of the object.doublerepeatDuration()The repeat duration of the object.voidsetAutoreverses(boolean value)When true, the object plays backwards after playing forwards.voidsetBeginTime(double value)The begin time of the object, in relation to its parent object, if applicable.voidsetDuration(double value)The basic duration of the object.voidsetFillMode(java.lang.String value)Defines how the timed object behaves outside its active duration.voidsetRepeatCount(float value)The repeat count of the object.voidsetRepeatDuration(double value)The repeat duration of the object.voidsetSpeed(float value)The rate of the layer.voidsetTimeOffset(double value)Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset.floatspeed()The rate of the layer.doubletimeOffset()Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset.
-
-
-
Method Detail
-
autoreverses
boolean autoreverses()
When true, the object plays backwards after playing forwards. Defaults to NO.
-
beginTime
double beginTime()
The begin time of the object, in relation to its parent object, if applicable. Defaults to 0.
-
duration
double duration()
The basic duration of the object. Defaults to 0.
-
fillMode
java.lang.String fillMode()
Defines how the timed object behaves outside its active duration. Local time may be clamped to either end of the active duration, or the element may be removed from the presentation. The legal values are `backwards', `forwards', `both' and `removed'. Defaults to `removed'.
-
repeatCount
float repeatCount()
The repeat count of the object. May be fractional. Defaults to 0.
-
repeatDuration
double repeatDuration()
The repeat duration of the object. Defaults to 0.
-
setAutoreverses
void setAutoreverses(boolean value)
When true, the object plays backwards after playing forwards. Defaults to NO.
-
setBeginTime
void setBeginTime(double value)
The begin time of the object, in relation to its parent object, if applicable. Defaults to 0.
-
setDuration
void setDuration(double value)
The basic duration of the object. Defaults to 0.
-
setFillMode
void setFillMode(java.lang.String value)
Defines how the timed object behaves outside its active duration. Local time may be clamped to either end of the active duration, or the element may be removed from the presentation. The legal values are `backwards', `forwards', `both' and `removed'. Defaults to `removed'.
-
setRepeatCount
void setRepeatCount(float value)
The repeat count of the object. May be fractional. Defaults to 0.
-
setRepeatDuration
void setRepeatDuration(double value)
The repeat duration of the object. Defaults to 0.
-
setSpeed
void setSpeed(float value)
The rate of the layer. Used to scale parent time to local time, e.g. if rate is 2, local time progresses twice as fast as parent time. Defaults to 1.
-
setTimeOffset
void setTimeOffset(double value)
Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset. One use of this is to "pause" a layer by setting `speed' to zero and `offset' to a suitable value. Defaults to 0.
-
speed
float speed()
The rate of the layer. Used to scale parent time to local time, e.g. if rate is 2, local time progresses twice as fast as parent time. Defaults to 1.
-
timeOffset
double timeOffset()
Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset. One use of this is to "pause" a layer by setting `speed' to zero and `offset' to a suitable value. Defaults to 0.
-
-