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 |
stroke
The stroke width.
|
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) |
OvalElement(double xCoord,
double yCoord,
double radius,
Color color)
Make an oval with the supplied radius.
|
OvalElement(double xCoord,
double yCoord,
double radius,
double stroke,
boolean fill,
Color color)
Make an oval with a particular fill and color.
|
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 double stroke
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, double stroke, 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 OvalElement(double xCoord, double yCoord, double radius, boolean fill, Color color)
public void accept(IRenderingVisitor visitor)
TextElement
into widget specific objects.accept
in interface IRenderingElement
visitor
- Toolkit specific widget factory.Copyright © 2021. All rights reserved.