|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdrawing.graphics.GraphicsElement
org.jdrawing.graphics.GraphicsOperation
org.jdrawing.graphics.RectangleOperation
org.jdrawing.graphics.AbstractDrawRect
org.jdrawing.graphics.DrawOval
Graphics element which corresponds to Graphics.drawOval(int, int, int, int)
| Field Summary |
| Fields inherited from class org.jdrawing.graphics.GraphicsElement |
BACKGROUND, COLOR, COMPOSITE, FONT, PAINT, parent, position, STROKE, TRANSFORM |
| Constructor Summary | |
DrawOval(int x,
int y,
int width,
int height)
Returns DrawOval which fits into specified rectangle. |
|
| Method Summary | |
boolean |
contains(java.awt.geom.Point2D point)
Tests if the element containes given point. |
java.awt.Rectangle |
getBounds()
Returns bounding box of the element. |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns high precision bounding box of the element. |
boolean |
intersects(java.awt.geom.Rectangle2D rectangle)
Tests if the element intersects with the given rectangle. |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs grawing operation. |
| Methods inherited from class org.jdrawing.graphics.RectangleOperation |
getHeight, getWidth, getX, getY, setHeight, setRectangle, setWidth, setX, setY |
| Methods inherited from class org.jdrawing.graphics.GraphicsOperation |
paint, update |
| Methods inherited from class org.jdrawing.graphics.GraphicsElement |
addStyle, getParent, getStyle, getStyles, getTransform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DrawOval(int x,
int y,
int width,
int height)
x - left edge of the rectangley - top edge of the rectangewidth - width of the rectangleheight - height of the rectange| Method Detail |
public void paintOperation(java.awt.Graphics2D graphics)
graphics.drawOval ().
paintOperation in class GraphicsOperationgraphics - graphics context to use for paintingpublic java.awt.Rectangle getBounds()
getBounds in interface DrawingElementgetBounds in class AbstractDrawRectpublic java.awt.geom.Rectangle2D getBounds2D()
getBounds2D in interface DrawingElementgetBounds2D in class AbstractDrawRectpublic boolean intersects(java.awt.geom.Rectangle2D rectangle)
intersects in interface DrawingElementintersects in class AbstractDrawRectrectangle - rectangle to be cheched for intersection
public boolean contains(java.awt.geom.Point2D point)
contains in interface DrawingElementcontains in class AbstractDrawRectpoint - to be checked
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||