Class ArcTo

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 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.

A visual rendering of ArcTo shape

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:

A visual rendering of ArcTo shape
 with setting to its different properties

Since:
JavaFX 2.0