Class PathElement2dfx.ArcPathElement2dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.dfx.PathElement2dfx
-
- org.arakhne.afc.math.geometry.d2.dfx.PathElement2dfx.ArcPathElement2dfx
-
- All Implemented Interfaces:
Serializable,Cloneable,PathElement2afp,PathElement2D
- Enclosing class:
- PathElement2dfx
static class PathElement2dfx.ArcPathElement2dfx extends PathElement2dfx
An element of the path that represents aARC_TO.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.arakhne.afc.math.geometry.d2.dfx.PathElement2dfx
PathElement2dfx.ArcPathElement2dfx, PathElement2dfx.ClosePathElement2dfx, PathElement2dfx.CurvePathElement2dfx, PathElement2dfx.LinePathElement2dfx, PathElement2dfx.MovePathElement2dfx, PathElement2dfx.QuadPathElement2dfx
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d2.dfx.PathElement2dfx
isEmpty, to, type
-
-
Constructor Summary
Constructors Constructor Description ArcPathElement2dfx(javafx.beans.property.DoubleProperty fromx, javafx.beans.property.DoubleProperty fromy, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy, javafx.beans.property.DoubleProperty xradius, javafx.beans.property.DoubleProperty yradius, javafx.beans.property.DoubleProperty xrotation, javafx.beans.property.BooleanProperty largeArcFlag, javafx.beans.property.BooleanProperty sweepFlag)Constructor.ArcPathElement2dfx(Point2dfx fromPoint, Point2dfx toPoint, javafx.beans.property.DoubleProperty xradius, javafx.beans.property.DoubleProperty yradius, javafx.beans.property.DoubleProperty xrotation, javafx.beans.property.BooleanProperty largeArcFlag, javafx.beans.property.BooleanProperty sweepFlag)Constructor by setting.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)javafx.beans.property.DoublePropertyfromXProperty()Replies the property for the x coordinate of the starting point.javafx.beans.property.DoublePropertyfromYProperty()Replies the property for the y coordinate of the starting point.doublegetFromX()Replies the x coordinate of the starting point.doublegetFromY()Replies the y coordinate of the starting point.booleangetLargeArcFlag()Replies if the arc-to will sweep clockwise around the ellipse.doublegetRadiusX()Replies the x radius of the arc-to ellipse.doublegetRadiusY()Replies the y radius of the arc-to ellipse.doublegetRotationX()Replies the rotation of the x axis of the arc-to ellipse.booleangetSweepFlag()Replies if the arc-to will sweep the long way around the ellipse.inthashCode()booleanisDrawable()Replies if the element is not empty and is drawable.javafx.beans.property.BooleanPropertyisEmptyProperty()Replies the property that indicates if this patth element is empty.javafx.beans.property.BooleanPropertylargeArcFlagProperty()Replies the property for the large ellipse arc flag.javafx.beans.property.DoublePropertyradiusXProperty()Replies the property for the radius along the x axis.javafx.beans.property.DoublePropertyradiusYProperty()Replies the property for the radius along the y axis.javafx.beans.property.DoublePropertyrotationXProperty()Replies the property for the rotation of the x axis.javafx.beans.property.BooleanPropertysweepFlagProperty()Replies the property for the sweep ellipse arc flag.javafx.beans.property.DoubleProperty[]toArray()Copy the coords into an array, except the source point.voidtoArray(double[] array)Copy the coords into the given array, except the source point.voidtoArray(int[] array)Copy the coords into the given array, except the source point.voidtoArray(javafx.beans.property.DoubleProperty[] array)Copy the coords into the given array, except the source point.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.dfx.PathElement2dfx
ctrlX1Property, ctrlX2Property, ctrlY1Property, ctrlY2Property, getCtrlX1, getCtrlX2, getCtrlY1, getCtrlY2, getToX, getToY, getType, isEmpty, toString, toXProperty, toYProperty
-
-
-
-
Constructor Detail
-
ArcPathElement2dfx
ArcPathElement2dfx(javafx.beans.property.DoubleProperty fromx, javafx.beans.property.DoubleProperty fromy, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy, javafx.beans.property.DoubleProperty xradius, javafx.beans.property.DoubleProperty yradius, javafx.beans.property.DoubleProperty xrotation, javafx.beans.property.BooleanProperty largeArcFlag, javafx.beans.property.BooleanProperty sweepFlag)Constructor.- Parameters:
fromx- x coordinate of the origin point.fromy- y coordinate of the origin point.tox- x coordinate of the target point.toy- y coordinate of the target point.xradius- radius of the ellipse along its x axis.yradius- radius of the ellipse along its y axis.xrotation- rotation (in radians) of the ellipse's x axis.largeArcFlag-trueiff the path will sweep the long way around the ellipse.sweepFlag-trueiff the path will sweep clockwise around the ellipse.
-
ArcPathElement2dfx
ArcPathElement2dfx(Point2dfx fromPoint, Point2dfx toPoint, javafx.beans.property.DoubleProperty xradius, javafx.beans.property.DoubleProperty yradius, javafx.beans.property.DoubleProperty xrotation, javafx.beans.property.BooleanProperty largeArcFlag, javafx.beans.property.BooleanProperty sweepFlag)
Constructor by setting.- Parameters:
fromPoint- the point to set as the origin point.toPoint- the point to set as the target point.xradius- radius of the ellipse along its x axis.yradius- radius of the ellipse along its y axis.xrotation- rotation (in radians) of the ellipse's x axis.largeArcFlag-trueiff the path will sweep the long way around the ellipse.sweepFlag-trueiff the path will sweep clockwise around the ellipse.
-
-
Method Detail
-
equals
@Pure public boolean equals(Object obj)
- Specified by:
equalsin classPathElement2dfx
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classPathElement2dfx
-
isEmptyProperty
@Pure public javafx.beans.property.BooleanProperty isEmptyProperty()
Description copied from class:PathElement2dfxReplies the property that indicates if this patth element is empty.- Specified by:
isEmptyPropertyin classPathElement2dfx- Returns:
- the isEmpty property.
-
isDrawable
@Pure public boolean isDrawable()
Description copied from interface:PathElement2DReplies if the element is not empty and is drawable.Only the path elements that may produce pixels on the screen must reply
truein this function.- Returns:
trueif the path element is drawable; otherwisefalse.
-
toArray
@Pure public void toArray(int[] array)
Description copied from interface:PathElement2afpCopy the coords into the given array, except the source point.- Parameters:
array- the output array.
-
toArray
@Pure public void toArray(javafx.beans.property.DoubleProperty[] array)
Description copied from class:PathElement2dfxCopy the coords into the given array, except the source point.- Specified by:
toArrayin classPathElement2dfx- Parameters:
array- the output array.
-
toArray
@Pure public void toArray(double[] array)
Description copied from interface:PathElement2afpCopy the coords into the given array, except the source point.- Parameters:
array- the output array.
-
toArray
@Pure public javafx.beans.property.DoubleProperty[] toArray()
Description copied from class:PathElement2dfxCopy the coords into an array, except the source point.- Specified by:
toArrayin classPathElement2dfx- Returns:
- the array of the points, except the source point.
-
getFromX
@Pure public double getFromX()
Description copied from interface:PathElement2afpReplies the x coordinate of the starting point.- Returns:
- the x coordinate, or
0if the type isPathElementType.MOVE_TO.
-
getFromY
@Pure public double getFromY()
Description copied from interface:PathElement2afpReplies the y coordinate of the starting point.- Returns:
- the y coordinate, or
0if the type isPathElementType.MOVE_TO.
-
fromXProperty
@Pure public javafx.beans.property.DoubleProperty fromXProperty()
Description copied from class:PathElement2dfxReplies the property for the x coordinate of the starting point.- Specified by:
fromXPropertyin classPathElement2dfx- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
fromYProperty
@Pure public javafx.beans.property.DoubleProperty fromYProperty()
Description copied from class:PathElement2dfxReplies the property for the y coordinate of the starting point.- Specified by:
fromYPropertyin classPathElement2dfx- Returns:
- the y coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
getRadiusX
public double getRadiusX()
Description copied from interface:PathElement2afpReplies the x radius of the arc-to ellipse.- Specified by:
getRadiusXin interfacePathElement2afp- Overrides:
getRadiusXin classPathElement2dfx- Returns:
- the x radius, or
0if the type is notPathElementType.ARC_TO.
-
getRadiusY
public double getRadiusY()
Description copied from interface:PathElement2afpReplies the y radius of the arc-to ellipse.- Specified by:
getRadiusYin interfacePathElement2afp- Overrides:
getRadiusYin classPathElement2dfx- Returns:
- the y radius, or
0if the type is notPathElementType.ARC_TO.
-
getRotationX
public double getRotationX()
Description copied from interface:PathElement2afpReplies the rotation of the x axis of the arc-to ellipse.- Specified by:
getRotationXin interfacePathElement2afp- Overrides:
getRotationXin classPathElement2dfx- Returns:
- the x axis rotation, or
0if the type is notPathElementType.ARC_TO.
-
getSweepFlag
public boolean getSweepFlag()
Description copied from interface:PathElement2afpReplies if the arc-to will sweep the long way around the ellipse.- Specified by:
getSweepFlagin interfacePathElement2afp- Overrides:
getSweepFlagin classPathElement2dfx- Returns:
trueiff the element will sweep clockwise around the ellipse, or0if the type is notPathElementType.ARC_TO.
-
getLargeArcFlag
public boolean getLargeArcFlag()
Description copied from interface:PathElement2afpReplies if the arc-to will sweep clockwise around the ellipse.- Specified by:
getLargeArcFlagin interfacePathElement2afp- Overrides:
getLargeArcFlagin classPathElement2dfx- Returns:
trueiff the element will sweep clockwise around the ellipse, or0if the type is notPathElementType.ARC_TO.
-
radiusXProperty
public javafx.beans.property.DoubleProperty radiusXProperty()
Description copied from class:PathElement2dfxReplies the property for the radius along the x axis.- Overrides:
radiusXPropertyin classPathElement2dfx- Returns:
- the x radius, or
nullif the type is notPathElementType.ARC_TO.
-
radiusYProperty
public javafx.beans.property.DoubleProperty radiusYProperty()
Description copied from class:PathElement2dfxReplies the property for the radius along the y axis.- Overrides:
radiusYPropertyin classPathElement2dfx- Returns:
- the y radius, or
nullif the type is notPathElementType.ARC_TO.
-
rotationXProperty
public javafx.beans.property.DoubleProperty rotationXProperty()
Description copied from class:PathElement2dfxReplies the property for the rotation of the x axis.- Overrides:
rotationXPropertyin classPathElement2dfx- Returns:
- the x-axis rotation, or
nullif the type is notPathElementType.ARC_TO.
-
largeArcFlagProperty
public javafx.beans.property.BooleanProperty largeArcFlagProperty()
Description copied from class:PathElement2dfxReplies the property for the large ellipse arc flag.- Overrides:
largeArcFlagPropertyin classPathElement2dfx- Returns:
- the flag, or
nullif the type is notPathElementType.ARC_TO.
-
sweepFlagProperty
public javafx.beans.property.BooleanProperty sweepFlagProperty()
Description copied from class:PathElement2dfxReplies the property for the sweep ellipse arc flag.- Overrides:
sweepFlagPropertyin classPathElement2dfx- Returns:
- the flag, or
nullif the type is notPathElementType.ARC_TO.
-
-