public class OvalElement extends Object implements IRenderingElement
| Modifier and Type | Field and Description |
|---|---|
Color |
color
The color to draw the oval.
|
boolean |
fill
If true, draw the oval as filled.
|
double |
radius
The radius of the oval.
|
double |
xCoord
The x-coordinate of the center of the oval.
|
double |
yCoord
The y-coordinate of the center of the oval.
|
| Constructor and Description |
|---|
OvalElement(double xCoord,
double yCoord,
Color color)
Make an oval with a default radius of 10.
|
OvalElement(double xCoord,
double yCoord,
double radius,
boolean fill,
Color color)
Make an oval with a particular fill and color.
|
OvalElement(double xCoord,
double yCoord,
double radius,
Color color)
Make an oval with the supplied radius.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(IRenderingVisitor visitor)
Converts this
TextElement into widget specific objects. |
public final double xCoord
public final double yCoord
public final double radius
public final boolean fill
public final Color color
public OvalElement(double xCoord,
double yCoord,
Color color)
xCoord - the x-coordinate of the center of the ovalyCoord - the y-coordinate of the center of the ovalcolor - the color of the ovalpublic OvalElement(double xCoord,
double yCoord,
double radius,
Color color)
xCoord - the x-coordinate of the center of the ovalyCoord - the y-coordinate of the center of the ovalradius - the radius of the ovalcolor - the color of the ovalpublic OvalElement(double xCoord,
double yCoord,
double radius,
boolean fill,
Color color)
xCoord - the x-coordinate of the center of the ovalyCoord - the y-coordinate of the center of the ovalradius - the radius of the ovalfill - if true, fill the oval when drawingcolor - the color of the ovalpublic void accept(IRenderingVisitor visitor)
TextElement into widget specific objects.accept in interface IRenderingElementvisitor - Toolkit specific widget factory.Copyright © 2018. All Rights Reserved.