public class Oval extends Rectangle
Constructor and Description |
---|
Oval(GraphPoint center,
double width,
double height,
GraphicAttributes attributes)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
renderWith(Renderer renderer)
Renders this oval with the specified
Renderer . |
getGraphicAttributes, isClosed
public Oval(GraphPoint center, double width, double height, GraphicAttributes attributes)
center
- The position of the center of this element.width
- The width.height
- The height.attributes
- Drawing attributes. Can be null.public void renderWith(Renderer renderer)
Renderer
.renderWith
in interface GraphicalElement
renderWith
in class Rectangle
renderer
- An instance of OvalRenderer
.IllegalArgumentException
- if renderer is not
an instance of OvalRenderer.Copyright © 2014. All Rights Reserved.