Ellipse class creates a new ellipse
with the specified size and location in pixels
import javafx.scene.shape.*;
Ellipse ellipse = new Ellipse(); {
ellipse.setCenterX(50.0f);
ellipse.setCenterY(50.0f);
ellipse.setRadiusX(50.0f);
ellipse.setRadiusY(25.0f);
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | centerX
Defines the horizontal position of the center of the ellipse in pixels. |
| private DoubleProperty | centerY
Defines the vertical position of the center of the ellipse in pixels. |
| private static final int | |
| private final DoubleProperty | radiusX
Defines the width of the ellipse in pixels. |
| private final DoubleProperty | radiusY
Defines the height of the ellipse in pixels. |
| private final Ellipse2D |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Ellipse(double
the horizontal radius of the ellipse in pixels radiusX, double the vertical radius of the ellipse in pixels radiusY)Creates an instance of Ellipse of the given size. |
| public | Ellipse(double
the horizontal position of the center of the ellipse in pixels centerX, double the vertical position of the center of the ellipse in pixels centerY, double the horizontal radius of the ellipse in pixels radiusX, double the vertical radius of the ellipse in pixels radiusY)Creates an instance of Ellipse of the given position and size. |
| Modifier and Type | Method and Description |
|---|---|
| public final DoubleProperty | |
| public final DoubleProperty | |
| pack-priv StrokeLineJoin | |
| private BaseBounds | |
| private Ellipse2D | |
| private NGNode | |
| private void | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public String | Returns: a string representation of thisEllipse object.Overrides javafx. Returns a string representation of this |
| centerX | back to summary |
|---|---|
| private DoubleProperty centerX Defines the horizontal position of the center of the ellipse in pixels.
| |
| centerY | back to summary |
|---|---|
| private DoubleProperty centerY Defines the vertical position of the center of the ellipse in pixels.
| |
| NON_RECTILINEAR_TYPE_MASK | back to summary |
|---|---|
| private static final int NON_RECTILINEAR_TYPE_MASK | |
| radiusX | back to summary |
|---|---|
| private final DoubleProperty radiusX Defines the width of the ellipse in pixels.
| |
| radiusY | back to summary |
|---|---|
| private final DoubleProperty radiusY Defines the height of the ellipse in pixels.
| |
| shape | back to summary |
|---|---|
| private final Ellipse2D shape | |
| Ellipse | back to summary |
|---|---|
| public Ellipse() Creates an empty instance of Ellipse. | |
| Ellipse | back to summary |
|---|---|
| public Ellipse(double radiusX, double radiusY) Creates an instance of Ellipse of the given size.
| |
| Ellipse | back to summary |
|---|---|
| public Ellipse(double centerX, double centerY, double radiusX, double radiusY) Creates an instance of Ellipse of the given position and size.
| |
| centerXProperty | back to summary |
|---|---|
| public final DoubleProperty centerXProperty() | |
| centerYProperty | back to summary |
|---|---|
| public final DoubleProperty centerYProperty() | |
| convertLineJoin | back to summary |
|---|---|
| pack-priv StrokeLineJoin convertLineJoin(StrokeLineJoin t) Overrides javafx.
| |
| doComputeGeomBounds | back to summary |
|---|---|
| private BaseBounds doComputeGeomBounds(BaseBounds bounds, BaseTransform tx) | |
| doConfigShape | back to summary |
|---|---|
| private Ellipse2D doConfigShape() | |
| doCreatePeer | back to summary |
|---|---|
| private NGNode doCreatePeer() | |
| doUpdatePeer | back to summary |
|---|---|
| private void doUpdatePeer() | |
| getCenterX | back to summary |
|---|---|
| public final double getCenterX() | |
| getCenterY | back to summary |
|---|---|
| public final double getCenterY() | |
| getRadiusX | back to summary |
|---|---|
| public final double getRadiusX() | |
| getRadiusY | back to summary |
|---|---|
| public final double getRadiusY() | |
| radiusXProperty | back to summary |
|---|---|
| public final DoubleProperty radiusXProperty() | |
| radiusYProperty | back to summary |
|---|---|
| public final DoubleProperty radiusYProperty() | |
| setCenterX | back to summary |
|---|---|
| public final void setCenterX(double value) | |
| setCenterY | back to summary |
|---|---|
| public final void setCenterY(double value) | |
| setRadiusX | back to summary |
|---|---|
| public final void setRadiusX(double value) | |
| setRadiusY | back to summary |
|---|---|
| public final void setRadiusY(double value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |