All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.awt.draw.Pointer

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

public class Pointer
extends DrawingPrimitive
This class produces a pointer that can be used the draw on components


Constructor Index

 o Pointer()
Constructs a drawing Pointer
 o Pointer(int, int)
Constructs a drawing Pointer at a specific location

Method Index

 o describe()
 o drawPoints(Graphics)
Draw the Pointer in the given graphics context
 o getPoint()
Returns the Point at which the Pointer currently resides
 o grab(int, int)
Grabs this primitive
 o mouseDownAction(int, int)
Performs a mouseDown for a Pointer
 o mouseDragAction(int, int)
Performs a mouseDrag for a Pointer
 o mouseUpAction(int, int)
Performs a mouseUp for a Pointer
 o move(Point, int, int)
Move this primitive from the current location to a new (x,y)
 o resetPoint(int, int)
Resets a drawing Pointer to a specific location
 o setBoundingBox(Vector)
Sets the bounding box values for this Pointer
 o setThickness(int)
Sets the thickness of the pointer's outline
 o setWidth(int)
Sets the width of the pointer

Constructors

 o Pointer
 public Pointer()
Constructs a drawing Pointer

 o Pointer
 public Pointer(int x,
                int y)
Constructs a drawing Pointer at a specific location

Parameters:
x - the x coordinate
y - the y coordinate

Methods

 o resetPoint
 public void resetPoint(int x,
                        int y)
Resets a drawing Pointer to a specific location

Parameters:
x - the x coordinate
y - the y coordinate
 o setBoundingBox
 public void setBoundingBox(Vector pnts)
Sets the bounding box values for this Pointer

Parameters:
pnts - the Vector containing the Pointer value
Overrides:
setBoundingBox in class DrawingPrimitive
 o getPoint
 public final Point getPoint()
Returns the Point at which the Pointer currently resides

Parameters:
x - the x coordinate
y - the y coordinate
 o setWidth
 public void setWidth(int width)
Sets the width of the pointer

Parameters:
width - the width of the pointer in pixels
 o setThickness
 public void setThickness(int thickness)
Sets the thickness of the pointer's outline

Parameters:
width - the thickness in pixels
 o mouseDownAction
 public void mouseDownAction(int x,
                             int y)
Performs a mouseDown for a Pointer

Overrides:
mouseDownAction in class DrawingPrimitive
 o mouseDragAction
 public void mouseDragAction(int x,
                             int y)
Performs a mouseDrag for a Pointer

Overrides:
mouseDragAction in class DrawingPrimitive
 o mouseUpAction
 public void mouseUpAction(int x,
                           int y)
Performs a mouseUp for a Pointer

Overrides:
mouseUpAction in class DrawingPrimitive
 o move
 public void move(Point start,
                  int x,
                  int y)
Move this primitive from the current location to a new (x,y)

Parameters:
start - the reference Point at which this move started
x - the x coordinate
y - the y coordinate
Overrides:
move in class DrawingPrimitive
 o drawPoints
 public void drawPoints(Graphics g)
Draw the Pointer in the given graphics context

Parameters:
the - graphics context
Overrides:
drawPoints in class DrawingPrimitive
 o grab
 public void grab(int x,
                  int y)
Grabs this primitive

Overrides:
grab in class DrawingPrimitive
 o describe
 public String describe()
Returns:
describes the pointer
Overrides:
describe in class DrawingPrimitive

All Packages  Class Hierarchy  This Package  Previous  Next  Index