public class Ellipse extends HShape
| Constructor and Description |
|---|
Ellipse(double X1,
double Y1,
double r1,
double r2)
Create an ellipse using the default stroke and the color
|
Ellipse(double X1,
double Y1,
double r1,
double r2,
Stroke strock,
Color color)
Create an ellipse with given semimajor and semiminor axes, centered on (x, y).
|
| Modifier and Type | Method and Description |
|---|---|
void |
doc()
Show online documentation.
|
double |
getRadiusX()
Get the radius in X.
|
double |
getRadiusY()
Get the radius in Y.
|
String |
toString()
Show it as a string
|
contains, getColor, getFill, getPosition, getPositionCoordinate, getRotation, getScaledPosition, getSettings, getStroke, getTransparency, getWhoAm, setColor, setDashed, setDotted, setFill, setPosCoord, setPositionCoordinate, setRotation, setStroke, setTransparency, setWhoAm, updateSettingspublic Ellipse(double X1,
double Y1,
double r1,
double r2,
Stroke strock,
Color color)
X1 - X center positionY1 - Y center positionr1 - radius in X, or semimajor axis of the ellipse (major divided by 2).r2 - radius in Y, or the semiminor axis of the ellipse (minor divided by 2).strock - Strokecolor - Colorpublic Ellipse(double X1,
double Y1,
double r1,
double r2)
X1 - X centerY1 - Y centerr1 - radius in X, or semimajor axis of the ellipse (major divided by 2).r2 - radius in Y, or the semiminor axis of the ellipse (minor divided by 2).public double getRadiusX()
public double getRadiusY()
public String toString()
public void doc()
DMelt 2.0 © DataMelt by jWork.ORG