All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.awt.draw.ImagePrimitiveParent

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

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


Variable Index

 o ci
 o img

Constructor Index

 o ImagePrimitiveParent()

Method Index

 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 loadImage(String)
 o locate(int, int)
 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 CollabImage ci

Constructors

 o ImagePrimitiveParent
 public ImagePrimitiveParent()

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 getImage
 public Image getImage()
 o setClipboard
 public void setClipboard(Image img)
 o setPoints
 public void setPoints()
 o loadImage
 public void loadImage(String fileName)
 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 getImgWidth
 public int getImgWidth()
 o getImgHeight
 public int getImgHeight()
 o setCanvas
 public void setCanvas(Component canvas)
Sets the component we're drawing into

Overrides:
setCanvas in class DrawingPrimitive
 o imageUpdate
 public boolean imageUpdate(Image im,
                            int infoflags,
                            int x,
                            int y,
                            int width,
                            int height)

All Packages  Class Hierarchy  This Package  Previous  Next  Index