Circle class creates a new circle
with the specified radius and center location measured in pixels.
Example usage. The following code creates a circle with radius of 50 pixels centered at (100,100).
import javafx.scene.shape.Circle;
Circle circle = new Circle();
circle.setCenterX(100.0f);
circle.setCenterY(100.0f);
circle.setRadius(50.0f);
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | centerX
Defines the horizontal position of the center of the circle in pixels. |
| private DoubleProperty | centerY
Defines the vertical position of the center of the circle in pixels. |
| private final DoubleProperty | radius
Defines the radius of the circle in pixels. |
| private final Ellipse2D |
| Access | Constructor and Description |
|---|---|
| public | Circle(double
the radius of the circle in pixels radius)Creates a new instance of Circle with a specified radius. |
| public | |
| public | |
| public | Circle(double
the horizontal position of the center of the circle in pixels centerX, double the vertical position of the center of the circle in pixels centerY, double the radius of the circle in pixels radius)Creates a new instance of Circle with a specified position and radius. |
| public | Circle(double
the horizontal position of the center of the circle in pixels centerX, double the vertical position of the center of the circle in pixels centerY, double the radius of the circle in pixels radius, Paint determines how to fill the interior of the Circle fill)Creates a new instance of Circle with a specified position, radius and fill. |
| 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 DoubleProperty | |
| public final void | |
| public final void | |
| public final void | |
| public String | Returns: a string representation of thisCircle 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 circle in pixels.
| |
| centerY | back to summary |
|---|---|
| private DoubleProperty centerY Defines the vertical position of the center of the circle in pixels.
| |
| radius | back to summary |
|---|---|
| private final DoubleProperty radius Defines the radius of the circle in pixels.
| |
| shape | back to summary |
|---|---|
| private final Ellipse2D shape | |
| Circle | back to summary |
|---|---|
| public Circle(double radius) Creates a new instance of Circle with a specified radius.
| |
| Circle | back to summary |
|---|---|
| public Circle(double radius, Paint fill) Creates a new instance of Circle with a specified radius and fill.
| |
| Circle | back to summary |
|---|---|
| public Circle() Creates an empty instance of Circle. | |
| Circle | back to summary |
|---|---|
| public Circle(double centerX, double centerY, double radius) Creates a new instance of Circle with a specified position and radius.
| |
| Circle | back to summary |
|---|---|
| public Circle(double centerX, double centerY, double radius, Paint fill) Creates a new instance of Circle with a specified position, radius and fill.
| |
| 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() | |
| getRadius | back to summary |
|---|---|
| public final double getRadius() | |
| radiusProperty | back to summary |
|---|---|
| public final DoubleProperty radiusProperty() | |
| setCenterX | back to summary |
|---|---|
| public final void setCenterX(double value) | |
| setCenterY | back to summary |
|---|---|
| public final void setCenterY(double value) | |
| setRadius | back to summary |
|---|---|
| public final void setRadius(double value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |