- java.lang.Object
- 
- javafx.scene.shape.PathElement
- 
- javafx.scene.shape.ArcTo
 
 
- 
 public class ArcTo extends PathElement A path element that forms an arc from the previous coordinates to the specified x and y coordinates using the specified radius.For more information on path elements see the PathandPathElementclasses.Example: import javafx.scene.shape.*; Path path = new Path(); MoveTo moveTo = new MoveTo(); moveTo.setX(0.0); moveTo.setY(0.0); ArcTo arcTo = new ArcTo(); arcTo.setX(50.0); arcTo.setY(50.0); arcTo.setRadiusX(50.0); arcTo.setRadiusY(50.0); path.getElements().add(moveTo); path.getElements().add(arcTo); Following image demonstrates radiusX,radiusYandxAxisRotationparameters:radiusXis the horizontal radius of the full ellipse of which this arc is a partial section,radiusYis its vertical radius.xAxisRotationdefines the rotation of the ellipse in degrees.  In most cases, there are four options of how to draw an arc from starting point to given end coordinates. They can be distinguished by largeArcFlagandsweepFlagparameters.largeArcFlag == truemeans that the arc greater than 180 degrees will be drawn.sweepFlag == truemeans that the arc will be drawn in the positive angle direction - i.e. the angle in the ellipse formula will increase from[fromX, fromY]to[x,y]. Following images demonstrate this behavior:  - Since:
- JavaFX 2.0
 
- 
- 
Property SummaryProperties Type Property Description BooleanPropertylargeArcFlagThe large arc flag.DoublePropertyradiusXThe horizontal radius to use for the arc.DoublePropertyradiusYThe vertical radius to use for the arc.BooleanPropertysweepFlagThe sweep flagDoublePropertyXAxisRotationThe x-axis rotation in degrees.DoublePropertyxThe x coordinate to arc to.DoublePropertyyThe y coordinate to arc to.- 
Properties inherited from class javafx.scene.shape.PathElementabsolute
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetRadiusX()Gets the value of the property radiusX.doublegetRadiusY()Gets the value of the property radiusY.doublegetX()Gets the value of the property x.doublegetXAxisRotation()Gets the x-axis rotation in degrees.doublegetY()Gets the value of the property y.booleanisLargeArcFlag()Gets the value of the property largeArcFlag.booleanisSweepFlag()Gets the value of the property sweepFlag.BooleanPropertylargeArcFlagProperty()The large arc flag.DoublePropertyradiusXProperty()The horizontal radius to use for the arc.DoublePropertyradiusYProperty()The vertical radius to use for the arc.voidsetLargeArcFlag(boolean value)Sets the value of the property largeArcFlag.voidsetRadiusX(double value)Sets the value of the property radiusX.voidsetRadiusY(double value)Sets the value of the property radiusY.voidsetSweepFlag(boolean value)Sets the value of the property sweepFlag.voidsetX(double value)Sets the value of the property x.voidsetXAxisRotation(double value)Sets the x-axis rotation in degrees.voidsetY(double value)Sets the value of the property y.BooleanPropertysweepFlagProperty()The sweep flagStringtoString()Returns a string representation of thisArcToobject.DoublePropertyXAxisRotationProperty()The x-axis rotation in degrees.DoublePropertyxProperty()The x coordinate to arc to.DoublePropertyyProperty()The y coordinate to arc to.- 
Methods inherited from class javafx.scene.shape.PathElementabsoluteProperty, isAbsolute, setAbsolute
 
- 
 
- 
- 
- 
Property Detail- 
radiusXpublic final DoubleProperty radiusXProperty The horizontal radius to use for the arc.- Default value:
- 0.0
- See Also:
- getRadiusX(),- setRadiusX(double)
 
 - 
radiusYpublic final DoubleProperty radiusYProperty The vertical radius to use for the arc.- Default value:
- 0.0
- See Also:
- getRadiusY(),- setRadiusY(double)
 
 - 
XAxisRotationpublic final DoubleProperty XAxisRotationProperty The x-axis rotation in degrees.- See Also:
- getXAxisRotation(),- setXAxisRotation(double)
 
 - 
largeArcFlagpublic final BooleanProperty largeArcFlagProperty The large arc flag.- Default value:
- false
- See Also:
- isLargeArcFlag(),- setLargeArcFlag(boolean)
 
 - 
sweepFlagpublic final BooleanProperty sweepFlagProperty The sweep flag- Default value:
- false
- See Also:
- isSweepFlag(),- setSweepFlag(boolean)
 
 - 
xpublic final DoubleProperty xProperty The x coordinate to arc to.- Default value:
- 0.0
- See Also:
- getX(),- setX(double)
 
 - 
ypublic final DoubleProperty yProperty The y coordinate to arc to.- Default value:
- 0.0
- See Also:
- getY(),- setY(double)
 
 
- 
 - 
Constructor Detail- 
ArcTopublic ArcTo() Creates an empty instance of ArcTo.
 - 
ArcTopublic ArcTo(double radiusX, double radiusY, double xAxisRotation, double x, double y, boolean largeArcFlag, boolean sweepFlag)Creates a new instance of ArcTo.- Parameters:
- radiusX- horizontal radius of the arc
- radiusY- vertical radius of the arc
- xAxisRotation- the x-axis rotation in degrees
- x- horizontal position of the arc end point
- y- vertical position of the arc end point
- largeArcFlag- large arg flag: determines which arc to use (large/small)
- sweepFlag- sweep flag: determines which arc to use (direction)
 
 
- 
 - 
Method Detail- 
setRadiusXpublic final void setRadiusX(double value) Sets the value of the property radiusX.- Property description:
- The horizontal radius to use for the arc.
- Default value:
- 0.0
 
 - 
getRadiusXpublic final double getRadiusX() Gets the value of the property radiusX.- Property description:
- The horizontal radius to use for the arc.
- Default value:
- 0.0
 
 - 
radiusXPropertypublic final DoubleProperty radiusXProperty() The horizontal radius to use for the arc.- Default value:
- 0.0
- See Also:
- getRadiusX(),- setRadiusX(double)
 
 - 
setRadiusYpublic final void setRadiusY(double value) Sets the value of the property radiusY.- Property description:
- The vertical radius to use for the arc.
- Default value:
- 0.0
 
 - 
getRadiusYpublic final double getRadiusY() Gets the value of the property radiusY.- Property description:
- The vertical radius to use for the arc.
- Default value:
- 0.0
 
 - 
radiusYPropertypublic final DoubleProperty radiusYProperty() The vertical radius to use for the arc.- Default value:
- 0.0
- See Also:
- getRadiusY(),- setRadiusY(double)
 
 - 
setXAxisRotationpublic final void setXAxisRotation(double value) Sets the x-axis rotation in degrees.- Parameters:
- value- the x-axis rotation in degrees.
 
 - 
getXAxisRotationpublic final double getXAxisRotation() Gets the x-axis rotation in degrees.- Returns:
- the x-axis rotation in degrees.
 
 - 
XAxisRotationPropertypublic final DoubleProperty XAxisRotationProperty() The x-axis rotation in degrees.- See Also:
- getXAxisRotation(),- setXAxisRotation(double)
 
 - 
setLargeArcFlagpublic final void setLargeArcFlag(boolean value) Sets the value of the property largeArcFlag.- Property description:
- The large arc flag.
- Default value:
- false
 
 - 
isLargeArcFlagpublic final boolean isLargeArcFlag() Gets the value of the property largeArcFlag.- Property description:
- The large arc flag.
- Default value:
- false
 
 - 
largeArcFlagPropertypublic final BooleanProperty largeArcFlagProperty() The large arc flag.- Default value:
- false
- See Also:
- isLargeArcFlag(),- setLargeArcFlag(boolean)
 
 - 
setSweepFlagpublic final void setSweepFlag(boolean value) Sets the value of the property sweepFlag.- Property description:
- The sweep flag
- Default value:
- false
 
 - 
isSweepFlagpublic final boolean isSweepFlag() Gets the value of the property sweepFlag.- Property description:
- The sweep flag
- Default value:
- false
 
 - 
sweepFlagPropertypublic final BooleanProperty sweepFlagProperty() The sweep flag- Default value:
- false
- See Also:
- isSweepFlag(),- setSweepFlag(boolean)
 
 - 
setXpublic final void setX(double value) Sets the value of the property x.- Property description:
- The x coordinate to arc to.
- Default value:
- 0.0
 
 - 
getXpublic final double getX() Gets the value of the property x.- Property description:
- The x coordinate to arc to.
- Default value:
- 0.0
 
 - 
xPropertypublic final DoubleProperty xProperty() The x coordinate to arc to.- Default value:
- 0.0
- See Also:
- getX(),- setX(double)
 
 - 
setYpublic final void setY(double value) Sets the value of the property y.- Property description:
- The y coordinate to arc to.
- Default value:
- 0.0
 
 - 
getYpublic final double getY() Gets the value of the property y.- Property description:
- The y coordinate to arc to.
- Default value:
- 0.0
 
 - 
yPropertypublic final DoubleProperty yProperty() The y coordinate to arc to.- Default value:
- 0.0
- See Also:
- getY(),- setY(double)
 
 
- 
 
-