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).
-
-
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 voidrenderWith(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:
renderWithin interfaceGraphicalElement- Overrides:
renderWithin classRectangle- Parameters:
renderer- An instance ofOvalRenderer.- Throws:
java.lang.IllegalArgumentException- if renderer is not an instance of OvalRenderer.
-
-