jwo.utils.gifutils
Class GIFImage.NetscapeExtension

java.lang.Object
  extended by jwo.utils.gifutils.GIFImage.NetscapeExtension
Enclosing class:
GIFImage

public class GIFImage.NetscapeExtension
extends Object

Extension block for looping animations.


Constructor Summary
GIFImage.NetscapeExtension(GIFInputStream input)
          Creates an extension based on an existing GIF file.
GIFImage.NetscapeExtension(int iterationCount)
          Creates an extension with the given number of looping iterations.
 
Method Summary
 int getIterationCount()
          Reports the number of looping iterations.
 void setIterationCount(int iterationCount)
          Sets the number of looping iterations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GIFImage.NetscapeExtension

public GIFImage.NetscapeExtension(GIFInputStream input)
                           throws IOException
Creates an extension based on an existing GIF file.

Parameters:
input - Input stream containing gif file to read.
Throws:
IOException - if problem reading from input stream.

GIFImage.NetscapeExtension

public GIFImage.NetscapeExtension(int iterationCount)
Creates an extension with the given number of looping iterations.

Parameters:
iterationCount - Number of times animation is to repeat or 0 for infinite loop.
Method Detail

setIterationCount

public void setIterationCount(int iterationCount)
Sets the number of looping iterations.

Parameters:
iterationCount - Number of times animation is to repeat or 0 for infinite loop.

getIterationCount

public int getIterationCount()
Reports the number of looping iterations.

Returns:
Number of times animation is to repeat or 0 for infinite loop.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009