Class ANIMMovieResources

java.lang.Object
org.monte.media.anim.ANIMMovieResources

public class ANIMMovieResources extends Object
Gives access to the static resources of a movie (image and audio data, global informations).
Author:
Werner Randelshofer, Hausmatt 10, CH-6405 Goldau, Switzerland
  • Field Details

  • Constructor Details

    • ANIMMovieResources

      public ANIMMovieResources()
  • Method Details

    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
    • setProperty

      public void setProperty(String name, Object newValue)
      Sets a property.
      Parameters:
      name - The name of the property.
      newValue - The value of the property.
    • setPlayWrapupFrames

      public void setPlayWrapupFrames(boolean b)
      Set this to true to treat the two wrapup frames at the end of the movie track like regular frames.
    • isPlayWrapupFrames

      public boolean isPlayWrapupFrames()
      Returns true, if the two wrapup frames at the end of the movie track are treated like regular frames.
    • getInterleave

      public int getInterleave()
      Returns the interleave of frames in this movie track. This is 2 for double buffered animations, and 1 one for animations without double buffering.
    • setSwapSpeakers

      public void setSwapSpeakers(boolean newValue)
      Swaps left and right speakers if set to true.
    • isSwapSpeakers

      public boolean isSwapSpeakers()
      Returns true if left and right speakers are swapped.
    • getProperty

      public Object getProperty(String name)
      Gets a property.
      Parameters:
      name - The name of the property.
      Returns:
      The value of the property or null if the property is not defined.
    • setJiffies

      public void setJiffies(int newValue)
    • setCompression

      public void setCompression(int newValue)
    • setWidth

      public void setWidth(int newValue)
    • setHeight

      public void setHeight(int newValue)
    • setXPosition

      public void setXPosition(int newValue)
    • setYPosition

      public void setYPosition(int newValue)
    • setNbPlanes

      public void setNbPlanes(int newValue)
    • setMasking

      public void setMasking(int newValue)
    • setTransparentColor

      public void setTransparentColor(int newValue)
    • setXAspect

      public void setXAspect(int newValue)
    • setYAspect

      public void setYAspect(int newValue)
    • setPageWidth

      public void setPageWidth(int newValue)
    • setPageHeight

      public void setPageHeight(int newValue)
    • setScreenMode

      public void setScreenMode(int newValue)
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getXPosition

      public int getXPosition()
    • getYPosition

      public int getYPosition()
    • getNbPlanes

      public int getNbPlanes()
    • getNbPalettes

      public int getNbPalettes()
    • getMasking

      public int getMasking()
    • getTransparentColor

      public int getTransparentColor()
    • getXAspect

      public int getXAspect()
    • getYAspect

      public int getYAspect()
    • getPageWidth

      public int getPageWidth()
    • getPageHeight

      public int getPageHeight()
    • getScreenMode

      public int getScreenMode()
    • getJiffies

      public int getJiffies()
    • getCompression

      public int getCompression()
    • getDeltaOperation

      public int getDeltaOperation()
      The return value of this method is only reliable when all frames of the movie have been loaded.
    • addFrame

      public void addFrame(ANIMFrame frame)
    • addAudioClip

      public void addAudioClip(AudioClip clip)
    • getAudioClipCount

      public int getAudioClipCount()
    • getAudioClip

      public AudioClip getAudioClip(int index)
    • getFrameCount

      public int getFrameCount()
    • getFrame

      public ANIMFrame getFrame(int index)
    • getFrameDuration

      public long getFrameDuration(int index)
      Timing for frame relative to previous frame.
    • getTotalDuration

      public long getTotalDuration()
      Total playback time of the movie in Jiffies (1/60 second).
    • addColorCycle

      public void addColorCycle(ColorCycle cc)
    • getColorCycles

      public List<ColorCycle> getColorCycles()
    • getColorCyclesCount

      public int getColorCyclesCount()