public class ArcTo extends PathElement
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);
| Type | Property and Description |
|---|---|
BooleanProperty |
largeArcFlag
The large arc flag.
|
DoubleProperty |
radiusX
The horizontal radius to use for the arc.
|
DoubleProperty |
radiusY
The vertical radius to use for the arc.
|
BooleanProperty |
sweepFlag
The sweep flag
|
DoubleProperty |
XAxisRotation
The x-axis rotation in degrees.
|
DoubleProperty |
x
The x coordinate to arc to.
|
DoubleProperty |
y
The y coordinate to arc to.
|
absolute| Constructor and Description |
|---|
ArcTo()
Creates an empty instance of ArcTo.
|
ArcTo(double radiusX,
double radiusY,
double xAxisRotation,
double x,
double y,
boolean largeArcFlag,
boolean sweepFlag)
Creates a new instance of ArcTo.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getRadiusX()
Gets the value of the property radiusX.
|
double |
getRadiusY()
Gets the value of the property radiusY.
|
double |
getX()
Gets the value of the property x.
|
double |
getXAxisRotation()
Gets the x-axis rotation in degrees.
|
double |
getY()
Gets the value of the property y.
|
boolean |
isLargeArcFlag()
Gets the value of the property largeArcFlag.
|
boolean |
isSweepFlag()
Gets the value of the property sweepFlag.
|
BooleanProperty |
largeArcFlagProperty()
The large arc flag.
|
DoubleProperty |
radiusXProperty()
The horizontal radius to use for the arc.
|
DoubleProperty |
radiusYProperty()
The vertical radius to use for the arc.
|
void |
setLargeArcFlag(boolean value)
Sets the value of the property largeArcFlag.
|
void |
setRadiusX(double value)
Sets the value of the property radiusX.
|
void |
setRadiusY(double value)
Sets the value of the property radiusY.
|
void |
setSweepFlag(boolean value)
Sets the value of the property sweepFlag.
|
void |
setX(double value)
Sets the value of the property x.
|
void |
setXAxisRotation(double value)
Sets the x-axis rotation in degrees.
|
void |
setY(double value)
Sets the value of the property y.
|
BooleanProperty |
sweepFlagProperty()
The sweep flag
|
DoubleProperty |
XAxisRotationProperty()
The x-axis rotation in degrees.
|
DoubleProperty |
xProperty()
The x coordinate to arc to.
|
DoubleProperty |
yProperty()
The y coordinate to arc to.
|
absoluteProperty, isAbsolute, setAbsolutepublic final DoubleProperty radiusXProperty
getRadiusX(),
setRadiusX(double)public final DoubleProperty radiusYProperty
getRadiusY(),
setRadiusY(double)public final DoubleProperty XAxisRotationProperty
getXAxisRotation(),
setXAxisRotation(double)public final BooleanProperty largeArcFlagProperty
isLargeArcFlag(),
setLargeArcFlag(boolean)public final BooleanProperty sweepFlagProperty
isSweepFlag(),
setSweepFlag(boolean)public final DoubleProperty xProperty
getX(),
setX(double)public final DoubleProperty yProperty
getY(),
setY(double)public ArcTo()
public ArcTo(double radiusX,
double radiusY,
double xAxisRotation,
double x,
double y,
boolean largeArcFlag,
boolean sweepFlag)
radiusX - horizontal radius of the arcradiusY - vertical radius of the arcxAxisRotation - the x-axis rotation in degreesx - horizontal position of the arc end pointy - vertical position of the arc end pointlargeArcFlag - large arg flag: determines which arc to use (large/small)sweepFlag - sweep flag: determines which arc to use (direction)public final void setRadiusX(double value)
public final double getRadiusX()
public final DoubleProperty radiusXProperty()
getRadiusX(),
setRadiusX(double)public final void setRadiusY(double value)
public final double getRadiusY()
public final DoubleProperty radiusYProperty()
getRadiusY(),
setRadiusY(double)public final void setXAxisRotation(double value)
value - the x-axis rotation in degrees.public final double getXAxisRotation()
public final DoubleProperty XAxisRotationProperty()
getXAxisRotation(),
setXAxisRotation(double)public final void setLargeArcFlag(boolean value)
public final boolean isLargeArcFlag()
public final BooleanProperty largeArcFlagProperty()
isLargeArcFlag(),
setLargeArcFlag(boolean)public final void setSweepFlag(boolean value)
public final boolean isSweepFlag()
public final BooleanProperty sweepFlagProperty()
isSweepFlag(),
setSweepFlag(boolean)public final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
getX(),
setX(double)public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
getY(),
setY(double)Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.