All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class fi.faidon.jvg.VectorImageProducer

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

public abstract class VectorImageProducer
extends Object
Interface for all classes that can draw vectorized data coming from a picture file, a recorded drawing sequence or something else.


Constructor Index

 o VectorImageProducer()

Method Index

 o checkImage()
Return the status of the asynchronous draw.
 o getHeight()
Get the height of the original image.
 o getWidth()
Get the width of the original image.
 o playIt(Graphics)
Immediately draw the image using the given graphics.
 o playIt(Graphics, Component)
Immediately draw the image using the given graphics and the given component.
 o playIt(Image, Component)
Do the drawing operations into the graphics of the given image.

Constructors

 o VectorImageProducer
 public VectorImageProducer()

Methods

 o getWidth
 public abstract int getWidth()
Get the width of the original image. If we are reading image information from a file and the frame size isn't known, then we read in the information immediately and return it. If we don't have any size information, then we return -1. This is the case for recorded drawing operations, for instance, where we don't know (and don't want to know) anything about the size of the drawing surface used.

 o getHeight
 public abstract int getHeight()
Get the height of the original image. If we are reading image information from a file and the frame size isn't known, then we read in the information immediately and return it. If we don't have any size information, then we return -1. This is the case for recorded drawing operations, for instance, where we don't know (and don't want to know) anything about the size of the drawing surface used.

 o playIt
 public void playIt(Graphics g)
Immediately draw the image using the given graphics. This method is especially useful for direct on-screen drawing and for drawing small images (containing few objects).

 o playIt
 public abstract void playIt(Graphics g,
                             Component c)
Immediately draw the image using the given graphics and the given component. We need a component if AWT images are included in the image for having an ImageObserver.

 o playIt
 public void playIt(Image img,
                    Component caller)
Do the drawing operations into the graphics of the given image. This is done in a separate thread so that several images can be drawn simultaneously. That is why we need an ImageObserver object that we can call for imageUpdate with ALLBITS once we are ready. The caller should normally take care of not launching several draws into the same image at the same time.

 o checkImage
 public abstract int checkImage()
Return the status of the asynchronous draw. This can only be 0 and ALLBITS. For some cases, it may also be WIDTH and HEIGHT. If there are pixmap images then it may be SOMEBITS too.


All Packages  Class Hierarchy  This Package  Previous  Next  Index