Interface CAMediaTiming

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean autoreverses()
      When true, the object plays backwards after playing forwards.
      double beginTime()
      The begin time of the object, in relation to its parent object, if applicable.
      double duration()
      The basic duration of the object.
      java.lang.String fillMode()
      Defines how the timed object behaves outside its active duration.
      float repeatCount()
      The repeat count of the object.
      double repeatDuration()
      The repeat duration of the object.
      void setAutoreverses​(boolean value)
      When true, the object plays backwards after playing forwards.
      void setBeginTime​(double value)
      The begin time of the object, in relation to its parent object, if applicable.
      void setDuration​(double value)
      The basic duration of the object.
      void setFillMode​(java.lang.String value)
      Defines how the timed object behaves outside its active duration.
      void setRepeatCount​(float value)
      The repeat count of the object.
      void setRepeatDuration​(double value)
      The repeat duration of the object.
      void setSpeed​(float value)
      The rate of the layer.
      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.
      float speed()
      The rate of the layer.
      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.
    • 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.