Class PathElement2ifx.ArcPathElement2ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx
-
- org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx.ArcPathElement2ifx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,PathElement2ai
,PathElement2D
- Enclosing class:
- PathElement2ifx
static class PathElement2ifx.ArcPathElement2ifx extends PathElement2ifx
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.ifx.PathElement2ifx
PathElement2ifx.ArcPathElement2ifx, PathElement2ifx.ClosePathElement2ifx, PathElement2ifx.CurvePathElement2ifx, PathElement2ifx.LinePathElement2ifx, PathElement2ifx.MovePathElement2ifx, PathElement2ifx.QuadPathElement2ifx
-
-
Field Summary
-
Fields inherited from class org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx
isEmpty, to, type
-
-
Constructor Summary
Constructors Constructor Description ArcPathElement2ifx(javafx.beans.property.IntegerProperty fromx, javafx.beans.property.IntegerProperty fromy, javafx.beans.property.IntegerProperty tox, javafx.beans.property.IntegerProperty toy, javafx.beans.property.IntegerProperty xradius, javafx.beans.property.IntegerProperty yradius, javafx.beans.property.DoubleProperty xrotation, javafx.beans.property.BooleanProperty largeArcFlag, javafx.beans.property.BooleanProperty sweepFlag)
Constructor.ArcPathElement2ifx(Point2ifx fromPoint, Point2ifx toPoint, javafx.beans.property.IntegerProperty xradius, javafx.beans.property.IntegerProperty 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 boolean
equals(Object obj)
javafx.beans.property.IntegerProperty
fromXProperty()
Replies the x coordinate of the starting point property.javafx.beans.property.IntegerProperty
fromYProperty()
Replies the y coordinate of the starting point property.int
getFromX()
Replies the x coordinate of the starting point.int
getFromY()
Replies the y coordinate of the starting point.boolean
getLargeArcFlag()
Replies if the arc-to will sweep clockwise around the ellipse.int
getRadiusX()
Replies the x radius of the arc-to ellipse.int
getRadiusY()
Replies the y radius of the arc-to ellipse.double
getRotationX()
Replies the rotation of the x axis of the arc-to ellipse.boolean
getSweepFlag()
Replies if the arc-to will sweep the long way around the ellipse.int
hashCode()
boolean
isDrawable()
Replies if the element is not empty and is drawable.javafx.beans.property.BooleanProperty
isEmptyProperty()
Replies the property that indicates if this patth element is empty.javafx.beans.property.BooleanProperty
largeArcFlagProperty()
Replies the property for the large ellipse arc flag.javafx.beans.property.IntegerProperty
radiusXProperty()
Replies the property for the radius along the x axis.javafx.beans.property.IntegerProperty
radiusYProperty()
Replies the property for the radius along the y axis.javafx.beans.property.DoubleProperty
rotationXProperty()
Replies the property for the rotation of the x axis.javafx.beans.property.BooleanProperty
sweepFlagProperty()
Replies the property for the sweep ellipse arc flag.javafx.beans.property.IntegerProperty[]
toArray()
Copy the coords into an array, except the source point.void
toArray(double[] array)
Copy the coords into the given array, except the source point.void
toArray(int[] array)
Copy the coords into the given array, except the source point.void
toArray(javafx.beans.property.IntegerProperty[] array)
Copy the coords into the given array, except the source point.-
Methods inherited from class org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx
ctrlX1Property, ctrlX2Property, ctrlY1Property, ctrlY2Property, getCtrlX1, getCtrlX2, getCtrlY1, getCtrlY2, getToX, getToY, getType, isEmpty, toString, toXProperty, toYProperty
-
-
-
-
Constructor Detail
-
ArcPathElement2ifx
ArcPathElement2ifx(javafx.beans.property.IntegerProperty fromx, javafx.beans.property.IntegerProperty fromy, javafx.beans.property.IntegerProperty tox, javafx.beans.property.IntegerProperty toy, javafx.beans.property.IntegerProperty xradius, javafx.beans.property.IntegerProperty 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
-true
iff the path will sweep the long way around the ellipse.sweepFlag
-true
iff the path will sweep clockwise around the ellipse.
-
ArcPathElement2ifx
ArcPathElement2ifx(Point2ifx fromPoint, Point2ifx toPoint, javafx.beans.property.IntegerProperty xradius, javafx.beans.property.IntegerProperty 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
-true
iff the path will sweep the long way around the ellipse.sweepFlag
-true
iff the path will sweep clockwise around the ellipse.
-
-
Method Detail
-
equals
@Pure public boolean equals(Object obj)
- Specified by:
equals
in classPathElement2ifx
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classPathElement2ifx
-
isEmptyProperty
@Pure public javafx.beans.property.BooleanProperty isEmptyProperty()
Description copied from class:PathElement2ifx
Replies the property that indicates if this patth element is empty.- Specified by:
isEmptyProperty
in classPathElement2ifx
- Returns:
- the isEmpty property.
-
isDrawable
@Pure public boolean isDrawable()
Description copied from interface:PathElement2D
Replies if the element is not empty and is drawable.Only the path elements that may produce pixels on the screen must reply
true
in this function.- Returns:
true
if the path element is drawable; otherwisefalse
.
-
toArray
@Pure public void toArray(int[] array)
Description copied from interface:PathElement2ai
Copy the coords into the given array, except the source point.- Parameters:
array
- the output array.
-
toArray
@Pure public void toArray(javafx.beans.property.IntegerProperty[] array)
Description copied from class:PathElement2ifx
Copy the coords into the given array, except the source point.- Specified by:
toArray
in classPathElement2ifx
- Parameters:
array
- the output array.
-
toArray
@Pure public void toArray(double[] array)
Description copied from interface:PathElement2ai
Copy the coords into the given array, except the source point.- Parameters:
array
- the output array.
-
toArray
@Pure public javafx.beans.property.IntegerProperty[] toArray()
Description copied from class:PathElement2ifx
Copy the coords into an array, except the source point.- Specified by:
toArray
in classPathElement2ifx
- Returns:
- the array of the points, except the source point.
-
getFromX
@Pure public int getFromX()
Description copied from interface:PathElement2ai
Replies the x coordinate of the starting point.- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
.
-
getFromY
@Pure public int getFromY()
Description copied from interface:PathElement2ai
Replies the y coordinate of the starting point.- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
.
-
fromXProperty
@Pure public javafx.beans.property.IntegerProperty fromXProperty()
Description copied from class:PathElement2ifx
Replies the x coordinate of the starting point property.- Specified by:
fromXProperty
in classPathElement2ifx
- Returns:
- the x coordinate, or
null
if the type isPathElementType.MOVE_TO
.
-
fromYProperty
@Pure public javafx.beans.property.IntegerProperty fromYProperty()
Description copied from class:PathElement2ifx
Replies the y coordinate of the starting point property.- Specified by:
fromYProperty
in classPathElement2ifx
- Returns:
- the y coordinate, or
null
if the type isPathElementType.MOVE_TO
.
-
getRadiusX
public int getRadiusX()
Description copied from interface:PathElement2ai
Replies the x radius of the arc-to ellipse.- Specified by:
getRadiusX
in interfacePathElement2ai
- Overrides:
getRadiusX
in classPathElement2ifx
- Returns:
- the x radius, or
0
if the type is notPathElementType.ARC_TO
.
-
getRadiusY
public int getRadiusY()
Description copied from interface:PathElement2ai
Replies the y radius of the arc-to ellipse.- Specified by:
getRadiusY
in interfacePathElement2ai
- Overrides:
getRadiusY
in classPathElement2ifx
- Returns:
- the y radius, or
0
if the type is notPathElementType.ARC_TO
.
-
getRotationX
public double getRotationX()
Description copied from interface:PathElement2ai
Replies the rotation of the x axis of the arc-to ellipse.- Specified by:
getRotationX
in interfacePathElement2ai
- Overrides:
getRotationX
in classPathElement2ifx
- Returns:
- the x axis rotation, or
0
if the type is notPathElementType.ARC_TO
.
-
getSweepFlag
public boolean getSweepFlag()
Description copied from interface:PathElement2ai
Replies if the arc-to will sweep the long way around the ellipse.- Specified by:
getSweepFlag
in interfacePathElement2ai
- Overrides:
getSweepFlag
in classPathElement2ifx
- Returns:
true
iff the element will sweep clockwise around the ellipse, or0
if the type is notPathElementType.ARC_TO
.
-
getLargeArcFlag
public boolean getLargeArcFlag()
Description copied from interface:PathElement2ai
Replies if the arc-to will sweep clockwise around the ellipse.- Specified by:
getLargeArcFlag
in interfacePathElement2ai
- Overrides:
getLargeArcFlag
in classPathElement2ifx
- Returns:
true
iff the element will sweep clockwise around the ellipse, or0
if the type is notPathElementType.ARC_TO
.
-
radiusXProperty
public javafx.beans.property.IntegerProperty radiusXProperty()
Description copied from class:PathElement2ifx
Replies the property for the radius along the x axis.- Overrides:
radiusXProperty
in classPathElement2ifx
- Returns:
- the x radius, or
null
if the type is notPathElementType.ARC_TO
.
-
radiusYProperty
public javafx.beans.property.IntegerProperty radiusYProperty()
Description copied from class:PathElement2ifx
Replies the property for the radius along the y axis.- Overrides:
radiusYProperty
in classPathElement2ifx
- Returns:
- the y radius, or
null
if the type is notPathElementType.ARC_TO
.
-
rotationXProperty
public javafx.beans.property.DoubleProperty rotationXProperty()
Description copied from class:PathElement2ifx
Replies the property for the rotation of the x axis.- Overrides:
rotationXProperty
in classPathElement2ifx
- Returns:
- the x-axis rotation, or
null
if the type is notPathElementType.ARC_TO
.
-
largeArcFlagProperty
public javafx.beans.property.BooleanProperty largeArcFlagProperty()
Description copied from class:PathElement2ifx
Replies the property for the large ellipse arc flag.- Overrides:
largeArcFlagProperty
in classPathElement2ifx
- Returns:
- the flag, or
null
if the type is notPathElementType.ARC_TO
.
-
sweepFlagProperty
public javafx.beans.property.BooleanProperty sweepFlagProperty()
Description copied from class:PathElement2ifx
Replies the property for the sweep ellipse arc flag.- Overrides:
sweepFlagProperty
in classPathElement2ifx
- Returns:
- the flag, or
null
if the type is notPathElementType.ARC_TO
.
-
-