Class ArcTo
For more information on path elements see the Path and
 PathElement classes.
 
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, radiusY and
 xAxisRotation parameters:
 radiusX is the horizontal radius of the full ellipse of which this arc is
 a partial section, radiusY is its vertical radius.
 xAxisRotation defines 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
 largeArcFlag and sweepFlag parameters.
 largeArcFlag == true means that the arc greater than 180 degrees will
 be drawn. sweepFlag == true means 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 SummaryPropertiesTypePropertyDescriptionfinal BooleanPropertyThe large arc flag.final DoublePropertyThe horizontal radius to use for the arc.final DoublePropertyThe vertical radius to use for the arc.final BooleanPropertyThe sweep flagfinal DoublePropertyThe x-axis rotation in degrees.final DoublePropertyThe x coordinate to arc to.final DoublePropertyThe y coordinate to arc to.Properties declared in class javafx.scene.shape.PathElementabsolute
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal doubleGets the value of theradiusXproperty.final doubleGets the value of theradiusYproperty.final doublegetX()Gets the value of thexproperty.final doubleGets the x-axis rotation in degrees.final doublegetY()Gets the value of theyproperty.final booleanGets the value of thelargeArcFlagproperty.final booleanGets the value of thesweepFlagproperty.final BooleanPropertyThe large arc flag.final DoublePropertyThe horizontal radius to use for the arc.final DoublePropertyThe vertical radius to use for the arc.final voidsetLargeArcFlag(boolean value) Sets the value of thelargeArcFlagproperty.final voidsetRadiusX(double value) Sets the value of theradiusXproperty.final voidsetRadiusY(double value) Sets the value of theradiusYproperty.final voidsetSweepFlag(boolean value) Sets the value of thesweepFlagproperty.final voidsetX(double value) Sets the value of thexproperty.final voidsetXAxisRotation(double value) Sets the x-axis rotation in degrees.final voidsetY(double value) Sets the value of theyproperty.final BooleanPropertyThe sweep flagtoString()Returns a string representation of thisArcToobject.final DoublePropertyThe x-axis rotation in degrees.final DoublePropertyThe x coordinate to arc to.final DoublePropertyThe y coordinate to arc to.Methods declared in class javafx.scene.shape.PathElementabsoluteProperty, isAbsolute, setAbsolute
- 
Property Details- 
radiusXThe horizontal radius to use for the arc.- Default value:
- 0.0
- See Also:
 
- 
radiusYThe vertical radius to use for the arc.- Default value:
- 0.0
- See Also:
 
- 
XAxisRotation
- 
largeArcFlagThe large arc flag.- Default value:
- false
- See Also:
 
- 
sweepFlag
- 
x
- 
y
 
- 
- 
Constructor Details- 
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 Details- 
setRadiusXpublic final void setRadiusX(double value) Sets the value of theradiusXproperty.- Property description:
- The horizontal radius to use for the arc.
- Default value:
- 0.0
- Parameters:
- value- the value for the- radiusXproperty
- See Also:
 
- 
getRadiusXpublic final double getRadiusX()Gets the value of theradiusXproperty.- Property description:
- The horizontal radius to use for the arc.
- Default value:
- 0.0
- Returns:
- the value of the radiusXproperty
- See Also:
 
- 
radiusXPropertyThe horizontal radius to use for the arc.- Default value:
- 0.0
- Returns:
- the radiusXproperty
- See Also:
 
- 
setRadiusYpublic final void setRadiusY(double value) Sets the value of theradiusYproperty.- Property description:
- The vertical radius to use for the arc.
- Default value:
- 0.0
- Parameters:
- value- the value for the- radiusYproperty
- See Also:
 
- 
getRadiusYpublic final double getRadiusY()Gets the value of theradiusYproperty.- Property description:
- The vertical radius to use for the arc.
- Default value:
- 0.0
- Returns:
- the value of the radiusYproperty
- See Also:
 
- 
radiusYPropertyThe vertical radius to use for the arc.- Default value:
- 0.0
- Returns:
- the radiusYproperty
- See Also:
 
- 
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.
 
- 
XAxisRotationPropertyThe x-axis rotation in degrees.- Returns:
- The XAxisRotation property
- See Also:
 
- 
setLargeArcFlagpublic final void setLargeArcFlag(boolean value) Sets the value of thelargeArcFlagproperty.- Property description:
- The large arc flag.
- Default value:
- false
- Parameters:
- value- the value for the- largeArcFlagproperty
- See Also:
 
- 
isLargeArcFlagpublic final boolean isLargeArcFlag()Gets the value of thelargeArcFlagproperty.- Property description:
- The large arc flag.
- Default value:
- false
- Returns:
- the value of the largeArcFlagproperty
- See Also:
 
- 
largeArcFlagPropertyThe large arc flag.- Default value:
- false
- Returns:
- the largeArcFlagproperty
- See Also:
 
- 
setSweepFlagpublic final void setSweepFlag(boolean value) Sets the value of thesweepFlagproperty.- Property description:
- The sweep flag
- Default value:
- false
- Parameters:
- value- the value for the- sweepFlagproperty
- See Also:
 
- 
isSweepFlagpublic final boolean isSweepFlag()Gets the value of thesweepFlagproperty.- Property description:
- The sweep flag
- Default value:
- false
- Returns:
- the value of the sweepFlagproperty
- See Also:
 
- 
sweepFlagPropertyThe sweep flag- Default value:
- false
- Returns:
- the sweepFlagproperty
- See Also:
 
- 
setXpublic final void setX(double value) Sets the value of thexproperty.- Property description:
- The x coordinate to arc to.
- Default value:
- 0.0
- Parameters:
- value- the value for the- xproperty
- See Also:
 
- 
getXpublic final double getX()Gets the value of thexproperty.- Property description:
- The x coordinate to arc to.
- Default value:
- 0.0
- Returns:
- the value of the xproperty
- See Also:
 
- 
xPropertyThe x coordinate to arc to.- Default value:
- 0.0
- Returns:
- the xproperty
- See Also:
 
- 
setYpublic final void setY(double value) Sets the value of theyproperty.- Property description:
- The y coordinate to arc to.
- Default value:
- 0.0
- Parameters:
- value- the value for the- yproperty
- See Also:
 
- 
getYpublic final double getY()Gets the value of theyproperty.- Property description:
- The y coordinate to arc to.
- Default value:
- 0.0
- Returns:
- the value of the yproperty
- See Also:
 
- 
yPropertyThe y coordinate to arc to.- Default value:
- 0.0
- Returns:
- the yproperty
- See Also:
 
- 
toString
 
-