All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.awt.draw.ImagePrimitiveP

java.lang.Object
   |
   +----ncsa.awt.draw.DrawingPrimitive
           |
           +----ncsa.awt.draw.ImagePrimitiveP

public abstract class ImagePrimitiveP
extends DrawingPrimitive
implements ImageObserver
An abstract class from which all other drawing primtives are derived.


Variable Index

 o ci
 o img
 o isValid
 o tracker

Constructor Index

 o ImagePrimitiveP()

Method Index

 o drawPlot(Graphics)
Draw the primitive in the given graphics context
 o drawPoints(Graphics)
Abstract method that must be implemented by the subclassed primitive.
 o getImage()
 o getImgHeight()
 o getImgWidth()
 o imageUpdate(Image, int, int, int, int, int)
 o isValid()
 o loadImage(String)
 o locate(int, int)
 o newImage(Image)
 o readImage()
 o readImage(Component, boolean)
 o resetImage(String)
 o setBoundingBox(Vector)
Initialize a bounding_box which contains this set of points
 o setCanvas(Component)
Sets the component we're drawing into
 o setClipboard(Image)
 o setImage(Image)
 o setPoints()

Variables

 o img
 protected transient Image img
 o ci
 protected transient CollabImage ci
 o tracker
 protected transient MediaTracker tracker
 o isValid
 protected transient boolean isValid

Constructors

 o ImagePrimitiveP
 public ImagePrimitiveP()

Methods

 o setBoundingBox
 public void setBoundingBox(Vector pnts)
Initialize a bounding_box which contains this set of points

Parameters:
pnts - the Vector containing the DrawingPrimitive which are used to construct the bounding box.
Overrides:
setBoundingBox in class DrawingPrimitive
 o setImage
 public void setImage(Image img)
 o setClipboard
 public void setClipboard(Image img)
 o getImage
 public Image getImage()
 o setPoints
 public void setPoints()
 o loadImage
 public void loadImage(String fileName)
 o drawPlot
 public void drawPlot(Graphics g)
Draw the primitive in the given graphics context

Overrides:
drawPlot in class DrawingPrimitive
 o drawPoints
 public void drawPoints(Graphics g)
Abstract method that must be implemented by the subclassed primitive.

Overrides:
drawPoints in class DrawingPrimitive
 o locate
 public void locate(int x,
                    int y)
 o readImage
 public void readImage()
 o readImage
 public void readImage(Component c,
                       boolean isSynchronous)
 o getImgWidth
 public int getImgWidth()
 o getImgHeight
 public int getImgHeight()
 o imageUpdate
 public boolean imageUpdate(Image im,
                            int infoflags,
                            int x,
                            int y,
                            int width,
                            int height)
 o newImage
 public void newImage(Image newIm)
 o setCanvas
 public void setCanvas(Component canvas)
Sets the component we're drawing into

Overrides:
setCanvas in class DrawingPrimitive
 o isValid
 public boolean isValid()
Overrides:
isValid in class DrawingPrimitive
 o resetImage
 public void resetImage(String fn)

All Packages  Class Hierarchy  This Package  Previous  Next  Index