Class Movie

java.lang.Object
tripleplay.flump.Movie
All Implemented Interfaces:
AutoCloseable, react.Closeable, Instance

public class Movie extends Object implements Instance
  • Field Details

    • labelPassed

      public final react.Signal<String> labelPassed
  • Method Details

    • layer

      public GroupLayer layer()
      Description copied from interface: Instance
      The layer that displays this instance.
      Specified by:
      layer in interface Instance
    • paint

      public void paint(Clock clock)
    • paint

      public void paint(float dt)
      Description copied from interface: Instance
      Notifies this instance that time has passed, for animation.
      Specified by:
      paint in interface Instance
      Parameters:
      dt - The time since the last update, in milliseconds.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface react.Closeable
    • position

      public float position()
      The playback position, in milliseconds.
    • setPosition

      public void setPosition(float position)
      Changes the playback position.
    • symbol

      public Movie.Symbol symbol()
    • speed

      public float speed()
      The playback speed multiplier, defaults to 1. Larger values will play faster.
    • setSpeed

      public void setSpeed(float speed)
      Changes the playback speed multiplier.
    • getNamedLayer

      public Layer getNamedLayer(String name)
      Retrieves a named layer. It should generally not be modified.
    • getInstances

      public List<Instance> getInstances(String name)
      Returns all of the Instances on a named layer.
    • setNamedLayer

      public void setNamedLayer(String name, Instance instance)
      Replaces the instance on a named layer. The layer should already be empty or contain a single Movie.
    • namedLayers

      public Map<String,Layer> namedLayers()
      Retrieves all named layers. They generally should not be modified.