|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jdrawing.graphics.GraphicsOperation org.jdrawing.graphics.RectangleOperation org.jdrawing.graphics.DrawOval
Graphics element which corresponds to Graphics.drawOval(int, int, int, int)
Constructor Summary | |
DrawOval(int x,
int y,
int width,
int height)
Returns DrawOval which fits into specified rectangle. |
|
DrawOval(int x,
int y,
int width,
int height,
Style style)
Returns DrawOval which fits into specified rectangle. |
Method Summary | |
java.awt.Rectangle |
getBounds()
Returns bounding box of the element. |
java.awt.geom.Rectangle2D |
getBounds2D()
Returns high precision bounding box of the element. |
java.awt.Shape |
getShapeOfOperation()
Returns shape of the area updated by this operation. |
void |
paintOperation(java.awt.Graphics2D graphics)
Performs drawing 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 |
contains, getPosition, getStyle, intersects, paint, setPosition, setStyle |
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 rectanglewidth
- width of the rectangleheight
- height of the rectanglepublic DrawOval(int x, int y, int width, int height, Style style)
x
- left edge of the rectangley
- top edge of the rectanglewidth
- width of the rectangleheight
- height of the rectangleMethod Detail |
public void paintOperation(java.awt.Graphics2D graphics)
graphics.drawOval ()
.
paintOperation
in class GraphicsOperation
graphics
- graphics context to use for paintingpublic java.awt.Rectangle getBounds()
getBounds
in interface DrawingElement
getBounds
in class GraphicsOperation
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface DrawingElement
getBounds2D
in class GraphicsOperation
public java.awt.Shape getShapeOfOperation()
getShapeOfOperation
in class GraphicsOperation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |