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.
-
PNGReader()
- Initialize stuff.
-
checkImage()
- Implements VectorImageProducer drawIntoImage().
-
getHeight()
- Implements VectorImageProducer getHeight().
-
getImage()
- Return the image.
-
getWidth()
- Implements VectorImageProducer getWidth().
-
isVerbose(boolean)
- Return if verbose or not.
-
playIt(Graphics, Component)
- Implements VectorImageProducer drawIt().
-
readPNGFile()
- Open and read the PNG file.
-
setImageFile(String)
- Sets the path of the image file to use.
-
setVerbose(boolean)
- Sets verbose to the state indicated.
PNGReader
public PNGReader()
- Initialize stuff.
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
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
getImage
public Image getImage()
- Return the image.
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
checkImage
public int checkImage()
- Implements VectorImageProducer drawIntoImage(). Return the status of the
drawing launched by drawIntoImage. NOT IMPLEMENTED YET!.
- Overrides:
- checkImage in class VectorImageProducer
setImageFile
public void setImageFile(String filePath)
- Sets the path of the image file to use.
setVerbose
public void setVerbose(boolean state)
- Sets verbose to the state indicated.
isVerbose
public boolean isVerbose(boolean state)
- Return if verbose or not.
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