Package jcckit.graphic
Class Oval
java.lang.Object
jcckit.graphic.BasicGraphicalElement
jcckit.graphic.Rectangle
jcckit.graphic.Oval
- All Implemented Interfaces:
GraphicalElement
An oval (i.e. an ellipse).
-
Constructor Summary
ConstructorsConstructorDescriptionOval(GraphPoint center, double width, double height, GraphicAttributes attributes) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderWith(Renderer renderer) Renders this oval with the specifiedRenderer.Methods inherited from class jcckit.graphic.BasicGraphicalElement
getGraphicAttributes, isClosed
-
Constructor Details
-
Oval
Creates a new instance.- Parameters:
center- The position of the center of this element.width- The width.height- The height.attributes- Drawing attributes. Can be null.
-
-
Method Details
-
renderWith
Renders this oval with the specifiedRenderer.- Specified by:
renderWithin interfaceGraphicalElement- Overrides:
renderWithin classRectangle- Parameters:
renderer- An instance ofOvalRenderer.- Throws:
IllegalArgumentException- if renderer is not an instance of OvalRenderer.
-