|
||||||||||
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.GraphicsRecording
Class for storing graphical operations and the objects related to them.
Field Summary | |
static int |
GZIP_COMPRESSION
|
static byte[] |
IMG_FILE_SIGNATURE
|
static int |
NO_COMPRESSION
|
Constructor Summary | |
GraphicsRecording()
Construct a new graphics operation with the give operation code. |
Method Summary | |
void |
addOperation(java.lang.Object[] opObjects)
Add an operation to the recording. |
void |
addOperation(java.util.Vector opObjects)
Add an operation to the recording. |
int |
checkImage()
Return the status as a function of the state of all images. |
int |
getHeight()
Always return -1 for the moment. |
java.awt.Image[] |
getImages()
Get an array of all Image objects in the recording. |
int |
getWidth()
Always return -1 for the moment. |
boolean |
isVerbose()
Verbose mode or not?. |
void |
playIt(java.awt.Graphics g,
java.awt.Component drawComponent)
Play the recorded operations into the given Graphics object. |
boolean |
readFromFile(java.io.File f)
Restore the object variables from the given file. |
boolean |
saveToFile(java.io.File f)
Save the operations vector to a file. |
void |
setVerbose(boolean isVerbose)
Set or clear verbose mode. |
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 |
Field Detail |
public static final byte[] IMG_FILE_SIGNATURE
public static final int NO_COMPRESSION
public static final int GZIP_COMPRESSION
Constructor Detail |
public GraphicsRecording()
Method Detail |
public boolean isVerbose()
public void setVerbose(boolean isVerbose)
public void addOperation(java.lang.Object[] opObjects)
public void addOperation(java.util.Vector opObjects)
public java.awt.Image[] getImages()
public int getWidth()
getWidth
in class VectorImageProducer
public int getHeight()
getHeight
in class VectorImageProducer
public void playIt(java.awt.Graphics g, java.awt.Component drawComponent)
playIt
in class VectorImageProducer
public int checkImage()
checkImage
in class VectorImageProducer
public boolean readFromFile(java.io.File f)
public boolean saveToFile(java.io.File f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |