|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jdraw.graphicalobjects.GraphicalObject | +--jdraw.graphicalobjects.SizedGraphicalObject | +--jdraw.graphicalobjects.Ellipse
A graphical ellipse.
Field Summary | |
private static Cursor |
CURSOR
The mouse cursor for this object. |
static String |
FRIENDLYNAME
The friendly name of objects of this class. |
private int |
iXRadius
The X-axis radius of this ellipse. |
private int |
iYRadius
The Y-axis radius of this ellipse. |
private Point |
ptCenter
The center of this ellipse. |
Fields inherited from class jdraw.graphicalobjects.SizedGraphicalObject |
iHeight, iWidth |
Fields inherited from class jdraw.graphicalobjects.GraphicalObject |
bDragInProgress, colColor, iX, iY, lstPropertyChangeListeners, ptDragAndDropStartPosition, ptInitialObjectPosition, rectInitialBoundingBox |
Constructor Summary | |
Ellipse(int iX,
int iY,
Color colColor,
int iWidth,
int iHeight)
Creates a new Ellipse with specified position, color, width and height. |
Method Summary | |
Point |
getCenter()
Returns the center of this ellipse. |
Cursor |
getCursor()
Returns the mouse cursor for this object. |
int |
getDistanceSq(Point ptPoint)
Returns the square of the minimal distance between this ellipse and the specified point. |
String |
getFriendlyName()
Returns the friendly name of this ellipse. |
int |
getXRadius()
Returns the X-axis radius of this ellipse. |
int |
getYRadius()
Returns the Y-axis radius of this ellipse. |
void |
paint(Graphics g)
Paints this ellipse. |
protected void |
updateCachedData()
Invoked when cached data have to be updated. |
protected void |
updateCenter()
Updates the center of this ellipse. |
protected void |
updateRadii()
Updates the radii of this ellipse. |
Methods inherited from class jdraw.graphicalobjects.SizedGraphicalObject |
getBoundingBox, getHeight, getPropertyDialog, getWidth, setHeight, setWidth |
Methods inherited from class jdraw.graphicalobjects.GraphicalObject |
addPropertyChangeListener, commitDragAndDrop, drag, fireBoudingBoxChange, getColor, getDistance, getDistanceSq, getDistanceSq, getX, getY, isDragInProgress, moveTo_silent, moveTo, openPropertyDialog, prepareBoudingBoxEvent, removePropertyChangeListener, rollbackDragAndDrop, setColor_silent, setColor, setX_silent, setX, setY_silent, setY, startDragAndDrop, suspendDragAndDrop |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static final String FRIENDLYNAME
private static final Cursor CURSOR
private final Point ptCenter
private int iXRadius
private int iYRadius
Constructor Detail |
public Ellipse(int iX, int iY, Color colColor, int iWidth, int iHeight)
Ellipse
with specified position, color, width and height.Method Detail |
public Cursor getCursor()
getCursor
in class GraphicalObject
public String getFriendlyName()
getFriendlyName
in class GraphicalObject
public void paint(Graphics g)
paint
in class GraphicalObject
public int getDistanceSq(Point ptPoint)
getDistanceSq
in class GraphicalObject
protected void updateCachedData()
updateCachedData
in class GraphicalObject
public Point getCenter()
protected void updateCenter()
public int getXRadius()
public int getYRadius()
protected void updateRadii()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |