Class ANIMMovieResources
java.lang.Object
org.monte.media.anim.ANIMMovieResources
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intScreenmodes.static final intScreenmodes.static final intScreenmodes.static final intScreenmodes.static final intScreenmodes.static final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAudioClip(AudioClip clip) voidvoidvoidgetAudioClip(int index) intintintintThe return value of this method is only reliable when all frames of the movie have been loaded.getFrame(int index) intlonggetFrameDuration(int index) Timing for frame relative to previous frame.intintReturns the interleave of frames in this movie track.intintintintintintgetProperty(String name) Gets a property.intlongTotal playback time of the movie in Jiffies (1/60 second).intintgetWidth()intintintintbooleanReturns true, if the two wrapup frames at the end of the movie track are treated like regular frames.booleanReturns true if left and right speakers are swapped.voidvoidsetCompression(int newValue) voidsetHeight(int newValue) voidsetJiffies(int newValue) voidsetMasking(int newValue) voidsetNbPlanes(int newValue) voidsetPageHeight(int newValue) voidsetPageWidth(int newValue) voidsetPlayWrapupFrames(boolean b) Set this to true to treat the two wrapup frames at the end of the movie track like regular frames.voidsetProperty(String name, Object newValue) Sets a property.voidsetScreenMode(int newValue) voidsetSwapSpeakers(boolean newValue) Swaps left and right speakers if set to true.voidsetTransparentColor(int newValue) voidsetWidth(int newValue) voidsetXAspect(int newValue) voidsetXPosition(int newValue) voidsetYAspect(int newValue) voidsetYPosition(int newValue)
-
Field Details
-
MSK_NONE
public static final int MSK_NONE- See Also:
-
MSK_HAS_MASK
public static final int MSK_HAS_MASK- See Also:
-
MSK_HAS_TRANSPARENT_COLOR
public static final int MSK_HAS_TRANSPARENT_COLOR- See Also:
-
MSK_LASSO
public static final int MSK_LASSO- See Also:
-
MODE_INDEXED_COLORS
public static final int MODE_INDEXED_COLORSScreenmodes.- See Also:
-
MODE_DIRECT_COLORS
public static final int MODE_DIRECT_COLORSScreenmodes.- See Also:
-
MODE_EHB
public static final int MODE_EHBScreenmodes.- See Also:
-
MODE_HAM6
public static final int MODE_HAM6Screenmodes.- See Also:
-
MODE_HAM8
public static final int MODE_HAM8Screenmodes.- See Also:
-
CMP_NONE
public static final int CMP_NONE- See Also:
-
CMP_BYTE_RUN_1
public static final int CMP_BYTE_RUN_1- See Also:
-
CMP_VERTICAL
public static final int CMP_VERTICAL- See Also:
-
-
Constructor Details
-
ANIMMovieResources
public ANIMMovieResources()
-
-
Method Details
-
addPropertyChangeListener
-
removePropertyChangeListener
-
setProperty
-
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
-
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
-
addAudioClip
-
getAudioClipCount
public int getAudioClipCount() -
getAudioClip
-
getFrameCount
public int getFrameCount() -
getFrame
-
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
-
getColorCycles
-
getColorCyclesCount
public int getColorCyclesCount()
-