All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.faidon.jvg.PNGReader

java.lang.Object
   |
   +----fi.faidon.jvg.VectorImageProducer
           |
           +----fi.faidon.jvg.PNGReader

public class PNGReader
extends VectorImageProducer
Class for reading PNG image files and creating corresponding Java AWT images.


Constructor Index

 o PNGReader()
Initialize stuff.

Method Index

 o checkImage()
Implements VectorImageProducer drawIntoImage().
 o getHeight()
Implements VectorImageProducer getHeight().
 o getImage()
Return the image.
 o getWidth()
Implements VectorImageProducer getWidth().
 o isVerbose(boolean)
Return if verbose or not.
 o playIt(Graphics, Component)
Implements VectorImageProducer drawIt().
 o readPNGFile()
Open and read the PNG file.
 o setImageFile(String)
Sets the path of the image file to use.
 o setVerbose(boolean)
Sets verbose to the state indicated.

Constructors

 o PNGReader
 public PNGReader()
Initialize stuff.

Methods

 o getWidth
 public int getWidth()
Implements VectorImageProducer getWidth(). If we don't know the frame size yet, then read it in.

Overrides:
getWidth in class VectorImageProducer
 o getHeight
 public int getHeight()
Implements VectorImageProducer getHeight(). If we don't know the frame size yet, then read it in.

Overrides:
getHeight in class VectorImageProducer
 o getImage
 public Image getImage()
Return the image.

 o playIt
 public void playIt(Graphics g,
                    Component c)
Implements VectorImageProducer drawIt(). Read in the whole Pixmap, create the image and draw it.

Overrides:
playIt in class VectorImageProducer
 o checkImage
 public int checkImage()
Implements VectorImageProducer drawIntoImage(). Return the status of the drawing launched by drawIntoImage. NOT IMPLEMENTED YET!.

Overrides:
checkImage in class VectorImageProducer
 o setImageFile
 public void setImageFile(String filePath)
Sets the path of the image file to use.

 o setVerbose
 public void setVerbose(boolean state)
Sets verbose to the state indicated.

 o isVerbose
 public boolean isVerbose(boolean state)
Return if verbose or not.

 o readPNGFile
 public boolean readPNGFile()
Open and read the PNG file. Create the corresponding MemoryImage. If "verbose" is true, the chunks read are listed on stdout.


All Packages  Class Hierarchy  This Package  Previous  Next  Index