|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jimi.core.options.BasicFormatOptionSet | +--com.sun.jimi.core.options.GIFOptions
Options class for GIF images.
Field Summary | |
protected IntOption |
frameDelay
|
protected BooleanOption |
interlace
|
protected BooleanOption |
localPalette
|
static int |
LOOP_FOREVER
Constant meaning unlimited number of loops |
static int |
NO_TRANSPARENCY
Constant meaning that the image has no transparency |
protected IntOption |
numberOfLoops
|
protected IntOption |
transparentIndex
|
Fields inherited from class com.sun.jimi.core.options.BasicFormatOptionSet |
nameToOptionMap,
options |
Constructor Summary | |
GIFOptions()
|
Method Summary | |
int |
getFrameDelay()
Get the delay for a frame of animation. |
int |
getNumberOfLoops()
Get the number of times an animation will be played. |
int |
getTransparentIndex()
Get the index to be treated as transparent. |
boolean |
isInterlaced()
Check whether interlacing is used. |
boolean |
isUsingLocalPalettes()
Check whether local palettes are in use. |
void |
setFrameDelay(int delay)
Set the delay for a frame of animation. |
void |
setInterlaced(boolean value)
Set whether the image should be interlaced. |
void |
setNumberOfLoops(int value)
Set the number of times to play an animation |
void |
setTransparentIndex(int index)
Set the index to be treated as transparent. |
void |
setUseLocalPalettes(boolean value)
Set whether frames should have their own palettes. |
java.lang.String |
toString()
|
Methods inherited from class com.sun.jimi.core.options.BasicFormatOptionSet |
clone,
copyOptionsFrom,
getOption,
getOptions,
initWithOptions |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int NO_TRANSPARENCY
public static final int LOOP_FOREVER
protected IntOption transparentIndex
protected BooleanOption interlace
protected IntOption frameDelay
protected BooleanOption localPalette
protected IntOption numberOfLoops
Constructor Detail |
public GIFOptions()
Method Detail |
public void setTransparentIndex(int index) throws OptionException
index
- the color indexpublic int getTransparentIndex()
public void setInterlaced(boolean value) throws OptionException
value
- true for interlacingpublic boolean isInterlaced()
public void setFrameDelay(int delay) throws OptionException
delay
- the delay in hundredths of a secondpublic int getFrameDelay()
public void setUseLocalPalettes(boolean value)
value
- true for separate palettes, false for sharedpublic boolean isUsingLocalPalettes()
public void setNumberOfLoops(int value) throws OptionException
value
- the number of times to play, between 1 and 65535, or LOOP_FOREVERpublic int getNumberOfLoops()
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |