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.
 
Fields inherited from class jdraw.graphicalobjects.GraphicalObject
bDragInProgress, colColor, iX, iY, lstPropertyChangeListeners, ptDragAndDropStartPosition, ptInitialObjectPosition, rectInitialBoundingBox
 
Constructor Summary
Point(int iX, int iY, Color colColor)
          Creates a new Point with specified position and color.
 
Method Summary
 Rectangle getBoundingBox()
          Returns the bounding box of this point.
 Cursor getCursor()
          Returns the mouse cursor for this object.
 int getDistanceSq(Point ptPoint)
          Returns the square of the minimal distance between this point and the specified point.
 String getFriendlyName()
          Returns the friendly name of this point.
 void paint(Graphics g)
          Paints this point.
 
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
 

Field Detail

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.
Constructor Detail

Point

public Point(int iX,
             int iY,
             Color colColor)
Creates a new Point with specified position and color.
Method Detail

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