|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--fi.faidon.jvg.VectorImageProducer
|
+--fi.faidon.jvg.PNGReader
Class for reading PNG image files and creating corresponding Java AWT images.
| Constructor Summary | |
PNGReader()
Initialize stuff. |
|
| Method Summary | |
int |
checkImage()
Implements VectorImageProducer drawIntoImage(). |
int |
getHeight()
Implements VectorImageProducer getHeight(). |
java.awt.Image |
getImage()
Return the image. |
int |
getWidth()
Implements VectorImageProducer getWidth(). |
boolean |
isVerbose(boolean state)
Return if verbose or not. |
void |
playIt(java.awt.Graphics g,
java.awt.Component c)
Implements VectorImageProducer drawIt(). |
boolean |
readPNGFile()
Open and read the PNG file. |
void |
setImageFile(java.lang.String filePath)
Sets the path of the image file to use. |
void |
setVerbose(boolean state)
Sets verbose to the state indicated. |
| Methods inherited from class fi.faidon.jvg.VectorImageProducer |
playIt, playIt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PNGReader()
| Method Detail |
public int getWidth()
getWidth in class VectorImageProducerpublic int getHeight()
getHeight in class VectorImageProducerpublic java.awt.Image getImage()
public void playIt(java.awt.Graphics g,
java.awt.Component c)
playIt in class VectorImageProducerpublic int checkImage()
checkImage in class VectorImageProducerpublic void setImageFile(java.lang.String filePath)
public void setVerbose(boolean state)
public boolean isVerbose(boolean state)
public boolean readPNGFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||