jdraw.graphicalobjects
Class Point
java.lang.Object
|
+--jdraw.graphicalobjects.GraphicalObject
|
+--jdraw.graphicalobjects.Point
- public class Point
- extends GraphicalObject
A graphical point.
Field Summary |
private static int |
CROSSRADIUS
The radius, in pixels, of the cross representing this point. |
private static Cursor |
CURSOR
The mouse cursor for this object. |
static String |
FRIENDLYNAME
The friendly name of objects of this class. |
Constructor Summary |
Point(int iX,
int iY,
Color colColor)
Creates a new Point with specified position and color. |
Methods inherited from class jdraw.graphicalobjects.GraphicalObject |
addPropertyChangeListener, commitDragAndDrop, drag, fireBoudingBoxChange, getColor, getDistance, getDistanceSq, getDistanceSq, getPropertyDialog, getX, getY, isDragInProgress, moveTo_silent, moveTo, openPropertyDialog, prepareBoudingBoxEvent, removePropertyChangeListener, rollbackDragAndDrop, setColor_silent, setColor, setX_silent, setX, setY_silent, setY, startDragAndDrop, suspendDragAndDrop, updateCachedData |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
FRIENDLYNAME
public static final String FRIENDLYNAME
- The friendly name of objects of this class.
CROSSRADIUS
private static int CROSSRADIUS
- The radius, in pixels, of the cross representing this point.
CURSOR
private static final Cursor CURSOR
- The mouse cursor for this object.
Point
public Point(int iX,
int iY,
Color colColor)
- Creates a new
Point
with specified position and color.
getBoundingBox
public Rectangle getBoundingBox()
- Returns the bounding box of this point.
- Overrides:
getBoundingBox
in class GraphicalObject
getCursor
public Cursor getCursor()
- Returns the mouse cursor for this object.
- Overrides:
getCursor
in class GraphicalObject
getFriendlyName
public String getFriendlyName()
- Returns the friendly name of this point.
- Overrides:
getFriendlyName
in class GraphicalObject
paint
public void paint(Graphics g)
- Paints this point.
- Overrides:
paint
in class GraphicalObject
getDistanceSq
public int getDistanceSq(Point ptPoint)
- Returns the square of the minimal distance between this point and the specified point.
- Overrides:
getDistanceSq
in class GraphicalObject