Arc class represents a 2D arc object, defined by a center point,
start angle (in degrees), angular extent (length of the arc in degrees),
and an arc type (ArcType#OPEN, ArcType#CHORD,
or ArcType#ROUND).
Example usage: the following code creates an Arc which is centered around 50,50, has a radius of 25 and extends from the angle 45 to the angle 315 (270 degrees long), and is round.
import javafx.scene.shape.*; Arc arc = new Arc(); arc.setCenterX(50.0f); arc.setCenterY(50.0f); arc.setRadiusX(25.0f); arc.setRadiusY(25.0f); arc.setStartAngle(45.0f); arc.setLength(270.0f); arc.setType(ArcType.ROUND);
| Modifier and Type | Field and Description |
|---|---|
| private DoubleProperty | centerX
Defines the X coordinate of the center point of the arc. |
| private DoubleProperty | centerY
Defines the Y coordinate of the center point of the arc. |
| private final DoubleProperty | length
Defines the angular extent of the arc in degrees. |
| private final DoubleProperty | radiusX
Defines the overall width (horizontal radius) of the full ellipse of which this arc is a partial section. |
| private final DoubleProperty | radiusY
Defines the overall height (vertical radius) of the full ellipse of which this arc is a partial section. |
| private final Arc2D | |
| private DoubleProperty | startAngle
Defines the starting angle of the arc in degrees. |
| private ObjectProperty | type
Defines the closure type for the arc:
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | Arc(double
the X coordinate of the center point of the arc centerX, double the Y coordinate of the center point of the arc centerY, double the overall width (horizontal radius) of the full ellipse
of which this arc is a partial section radiusX, double the overall height (vertical radius) of the full ellipse
of which this arc is a partial section radiusY, double the starting angle of the arc in degrees startAngle, double the angular extent of the arc in degrees length)Creates a new instance of Arc. |
| Modifier and Type | Method and Description |
|---|---|
| public final DoubleProperty | |
| public final DoubleProperty | |
| private Arc2D | |
| private NGNode | |
| private void | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final double | |
| public final ArcType | |
| private final ArcType | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final DoubleProperty | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final DoubleProperty | |
| public String | Returns: a string representation of thisArc object.Overrides javafx. Returns a string representation of this |
| public final ObjectProperty |
| centerX | back to summary |
|---|---|
| private DoubleProperty centerX Defines the X coordinate of the center point of the arc.
| |
| centerY | back to summary |
|---|---|
| private DoubleProperty centerY Defines the Y coordinate of the center point of the arc.
| |
| length | back to summary |
|---|---|
| private final DoubleProperty length Defines the angular extent of the arc in degrees.
| |
| radiusX | back to summary |
|---|---|
| private final DoubleProperty radiusX Defines the overall width (horizontal radius) of the full ellipse of which this arc is a partial section.
| |
| radiusY | back to summary |
|---|---|
| private final DoubleProperty radiusY Defines the overall height (vertical radius) of the full ellipse of which this arc is a partial section.
| |
| shape | back to summary |
|---|---|
| private final Arc2D shape | |
| startAngle | back to summary |
|---|---|
| private DoubleProperty startAngle Defines the starting angle of the arc in degrees.
| |
| type | back to summary |
|---|---|
| private ObjectProperty<ArcType> type Defines the closure type for the arc:
| |
| Arc | back to summary |
|---|---|
| public Arc() Creates an empty instance of Arc. | |
| Arc | back to summary |
|---|---|
| public Arc(double centerX, double centerY, double radiusX, double radiusY, double startAngle, double length) Creates a new instance of Arc.
| |
| centerXProperty | back to summary |
|---|---|
| public final DoubleProperty centerXProperty() | |
| centerYProperty | back to summary |
|---|---|
| public final DoubleProperty centerYProperty() | |
| doConfigShape | back to summary |
|---|---|
| private Arc2D 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() | |
| getLength | back to summary |
|---|---|
| public final double getLength() | |
| getRadiusX | back to summary |
|---|---|
| public final double getRadiusX() | |
| getRadiusY | back to summary |
|---|---|
| public final double getRadiusY() | |
| getStartAngle | back to summary |
|---|---|
| public final double getStartAngle() | |
| getType | back to summary |
|---|---|
| public final ArcType getType() | |
| getTypeInternal | back to summary |
|---|---|
| private final ArcType getTypeInternal() | |
| lengthProperty | back to summary |
|---|---|
| public final DoubleProperty lengthProperty() | |
| 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) | |
| setLength | back to summary |
|---|---|
| public final void setLength(double value) | |
| setRadiusX | back to summary |
|---|---|
| public final void setRadiusX(double value) | |
| setRadiusY | back to summary |
|---|---|
| public final void setRadiusY(double value) | |
| setStartAngle | back to summary |
|---|---|
| public final void setStartAngle(double value) | |
| setType | back to summary |
|---|---|
| public final void setType(ArcType value) | |
| startAngleProperty | back to summary |
|---|---|
| public final DoubleProperty startAngleProperty() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides javafx. Returns a string representation of this | |
| typeProperty | back to summary |
|---|---|
| public final ObjectProperty | |