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
-
Pointer()
- Constructs a drawing Pointer
-
Pointer(int, int)
- Constructs a drawing Pointer at a specific location
-
describe()
-
-
drawPoints(Graphics)
- Draw the Pointer in the given graphics context
-
getPoint()
- Returns the Point at which the Pointer currently resides
-
grab(int, int)
- Grabs this primitive
-
mouseDownAction(int, int)
- Performs a mouseDown for a Pointer
-
mouseDragAction(int, int)
- Performs a mouseDrag for a Pointer
-
mouseUpAction(int, int)
- Performs a mouseUp for a Pointer
-
move(Point, int, int)
- Move this primitive from the current location to a new (x,y)
-
resetPoint(int, int)
- Resets a drawing Pointer to a specific location
-
setBoundingBox(Vector)
- Sets the bounding box values for this Pointer
-
setThickness(int)
- Sets the thickness of the pointer's outline
-
setWidth(int)
- Sets the width of the pointer
Pointer
public Pointer()
- Constructs a drawing Pointer
Pointer
public Pointer(int x,
int y)
- Constructs a drawing Pointer at a specific location
- Parameters:
- x - the x coordinate
- y - the y coordinate
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
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
getPoint
public final Point getPoint()
- Returns the Point at which the Pointer currently resides
- Parameters:
- x - the x coordinate
- y - the y coordinate
setWidth
public void setWidth(int width)
- Sets the width of the pointer
- Parameters:
- width - the width of the pointer in pixels
setThickness
public void setThickness(int thickness)
- Sets the thickness of the pointer's outline
- Parameters:
- width - the thickness in pixels
mouseDownAction
public void mouseDownAction(int x,
int y)
- Performs a mouseDown for a Pointer
- Overrides:
- mouseDownAction in class DrawingPrimitive
mouseDragAction
public void mouseDragAction(int x,
int y)
- Performs a mouseDrag for a Pointer
- Overrides:
- mouseDragAction in class DrawingPrimitive
mouseUpAction
public void mouseUpAction(int x,
int y)
- Performs a mouseUp for a Pointer
- Overrides:
- mouseUpAction in class DrawingPrimitive
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
drawPoints
public void drawPoints(Graphics g)
- Draw the Pointer in the given graphics context
- Parameters:
- the - graphics context
- Overrides:
- drawPoints in class DrawingPrimitive
grab
public void grab(int x,
int y)
- Grabs this primitive
- Overrides:
- grab in class DrawingPrimitive
describe
public String describe()
- Returns:
- describes the pointer
- Overrides:
- describe in class DrawingPrimitive
All Packages Class Hierarchy This Package Previous Next Index