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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
renderWith
public void renderWith(Renderer renderer)
- Renders this oval with the specified
Renderer
.
- Specified by:
renderWith
in interface GraphicalElement
- Overrides:
renderWith
in class Rectangle
- Parameters:
renderer
- An instance of OvalRenderer
.
- Throws:
IllegalArgumentException
- if renderer is not
an instance of OvalRenderer.
Copyright © 2012. All Rights Reserved.