Package jcckit.graphic
Class Oval
- java.lang.Object
-
- jcckit.graphic.BasicGraphicalElement
-
- jcckit.graphic.Rectangle
-
- jcckit.graphic.Oval
-
- All Implemented Interfaces:
GraphicalElement
public class Oval extends Rectangle
An oval (i.e. an ellipse).- Author:
- Franz-Josef Elmer
-
-
Constructor Summary
Constructors Constructor Description Oval(GraphPoint center, double width, double height, GraphicAttributes attributes)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
renderWith(Renderer renderer)
Renders this oval with the specifiedRenderer
.-
Methods inherited from class jcckit.graphic.BasicGraphicalElement
getGraphicAttributes, isClosed
-
-
-
-
Constructor Detail
-
Oval
public Oval(GraphPoint center, double width, double height, GraphicAttributes attributes)
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 Detail
-
renderWith
public void renderWith(Renderer renderer)
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.
-
-