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.
-
ci
-
-
img
-
-
isValid
-
-
tracker
-
-
ImagePrimitiveP()
-
-
drawPlot(Graphics)
- Draw the primitive in the given graphics context
-
drawPoints(Graphics)
-
Abstract method that must be implemented by the subclassed
primitive.
-
getImage()
-
-
getImgHeight()
-
-
getImgWidth()
-
-
imageUpdate(Image, int, int, int, int, int)
-
-
isValid()
-
-
loadImage(String)
-
-
locate(int, int)
-
-
newImage(Image)
-
-
readImage()
-
-
readImage(Component, boolean)
-
-
resetImage(String)
-
-
setBoundingBox(Vector)
- Initialize a bounding_box which contains this set of points
-
setCanvas(Component)
- Sets the component we're drawing into
-
setClipboard(Image)
-
-
setImage(Image)
-
-
setPoints()
-
img
protected transient Image img
ci
protected transient CollabImage ci
tracker
protected transient MediaTracker tracker
isValid
protected transient boolean isValid
ImagePrimitiveP
public ImagePrimitiveP()
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
setImage
public void setImage(Image img)
setClipboard
public void setClipboard(Image img)
getImage
public Image getImage()
setPoints
public void setPoints()
loadImage
public void loadImage(String fileName)
drawPlot
public void drawPlot(Graphics g)
- Draw the primitive in the given graphics context
- Overrides:
- drawPlot in class DrawingPrimitive
drawPoints
public void drawPoints(Graphics g)
- Abstract method that must be implemented by the subclassed
primitive.
- Overrides:
- drawPoints in class DrawingPrimitive
locate
public void locate(int x,
int y)
readImage
public void readImage()
readImage
public void readImage(Component c,
boolean isSynchronous)
getImgWidth
public int getImgWidth()
getImgHeight
public int getImgHeight()
imageUpdate
public boolean imageUpdate(Image im,
int infoflags,
int x,
int y,
int width,
int height)
newImage
public void newImage(Image newIm)
setCanvas
public void setCanvas(Component canvas)
- Sets the component we're drawing into
- Overrides:
- setCanvas in class DrawingPrimitive
isValid
public boolean isValid()
- Overrides:
- isValid in class DrawingPrimitive
resetImage
public void resetImage(String fn)
All Packages Class Hierarchy This Package Previous Next Index