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
ConstructorDescriptionOval
(GraphPoint center, double width, double height, GraphicAttributes attributes) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
renderWith
(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:
renderWith
in interfaceGraphicalElement
- Overrides:
renderWith
in classRectangle
- Parameters:
renderer
- An instance ofOvalRenderer
.- Throws:
IllegalArgumentException
- if renderer is not an instance of OvalRenderer.
-