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, isClosedpublic 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 GraphicalElementrenderWith in class Rectanglerenderer - An instance of OvalRenderer.IllegalArgumentException - if renderer is not
an instance of OvalRenderer.Copyright © 2017. All rights reserved.