Class PathElement2ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,PathElement2ai
,PathElement2D
- Direct Known Subclasses:
PathElement2ifx.ArcPathElement2ifx
,PathElement2ifx.ClosePathElement2ifx
,PathElement2ifx.CurvePathElement2ifx
,PathElement2ifx.LinePathElement2ifx
,PathElement2ifx.MovePathElement2ifx
,PathElement2ifx.QuadPathElement2ifx
public abstract class PathElement2ifx extends Object implements PathElement2ai
An element of the path with 2 integer FX properties.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND
- See Also:
- Serialized Form
- Maven Group Id:
- org.arakhne.afc.advanced
- Maven Artifact Id:
- mathfx
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PathElement2ifx.ArcPathElement2ifx
An element of the path that represents aARC_TO
.(package private) static class
PathElement2ifx.ClosePathElement2ifx
An element of the path that represents aCLOSE
.(package private) static class
PathElement2ifx.CurvePathElement2ifx
An element of the path that represents aCURVE_TO
.(package private) static class
PathElement2ifx.LinePathElement2ifx
An element of the path that represents aLINE_TO
.(package private) static class
PathElement2ifx.MovePathElement2ifx
An element of the path that represents aMOVE_TO
.(package private) static class
PathElement2ifx.QuadPathElement2ifx
An element of the path that represents aQUAD_TO
.
-
Field Summary
Fields Modifier and Type Field Description protected javafx.beans.property.ReadOnlyBooleanWrapper
isEmpty
Is Empty property.protected Point2ifx
to
Target point.protected PathElementType
type
Type of the element.
-
Constructor Summary
Constructors Constructor Description PathElement2ifx(PathElementType type, javafx.beans.property.IntegerProperty tox, javafx.beans.property.IntegerProperty toy)
Constructor.PathElement2ifx(PathElementType type, Point2ifx toPoint)
Constructor by setting.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.IntegerProperty
ctrlX1Property()
Replies the property for the x coordinate of the first control point.javafx.beans.property.IntegerProperty
ctrlX2Property()
Replies the property for the x coordinate of the second control point.javafx.beans.property.IntegerProperty
ctrlY1Property()
Replies the property for the y coordinate of the first control point.javafx.beans.property.IntegerProperty
ctrlY2Property()
Replies the property for the y coordinate of the second control point.abstract boolean
equals(Object obj)
abstract javafx.beans.property.IntegerProperty
fromXProperty()
Replies the x coordinate of the starting point property.abstract javafx.beans.property.IntegerProperty
fromYProperty()
Replies the y coordinate of the starting point property.int
getCtrlX1()
Replies the x coordinate of the first control point.int
getCtrlX2()
Replies the x coordinate of the second control point.int
getCtrlY1()
Replies the y coordinate of the first control point.int
getCtrlY2()
Replies the y coordinate of the second control 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
getToX()
Replies the x coordinate of the target point.int
getToY()
Replies the y coordinate of the target point.PathElementType
getType()
Replies the type of the element.abstract int
hashCode()
boolean
isEmpty()
Replies if the element is empty, ie. the points are the same.abstract 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.abstract javafx.beans.property.IntegerProperty[]
toArray()
Copy the coords into an array, except the source point.abstract void
toArray(javafx.beans.property.IntegerProperty[] array)
Copy the coords into the given array, except the source point.String
toString()
javafx.beans.property.IntegerProperty
toXProperty()
Replies the x coordinate of the target point property.javafx.beans.property.IntegerProperty
toYProperty()
Replies the y coordinate of the target point property.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.ai.PathElement2ai
getFromX, getFromY, toArray, toArray
-
Methods inherited from interface org.arakhne.afc.math.geometry.d2.PathElement2D
isDrawable
-
-
-
-
Field Detail
-
type
protected final PathElementType type
Type of the element.
-
to
protected final Point2ifx to
Target point.
-
isEmpty
protected javafx.beans.property.ReadOnlyBooleanWrapper isEmpty
Is Empty property.
-
-
Constructor Detail
-
PathElement2ifx
PathElement2ifx(PathElementType type, javafx.beans.property.IntegerProperty tox, javafx.beans.property.IntegerProperty toy)
Constructor.- Parameters:
type
- is the type of the element.tox
- the x coordinate of the target point.toy
- the x coordinate of the target point.
-
PathElement2ifx
PathElement2ifx(PathElementType type, Point2ifx toPoint)
Constructor by setting.- Parameters:
type
- is the type of the element.toPoint
- the point to set as the target point.
-
-
Method Detail
-
isEmptyProperty
public abstract javafx.beans.property.BooleanProperty isEmptyProperty()
Replies the property that indicates if this patth element is empty.- Returns:
- the isEmpty property.
-
isEmpty
public boolean isEmpty()
Description copied from interface:PathElement2D
Replies if the element is empty, ie. the points are the same.- Specified by:
isEmpty
in interfacePathElement2D
- Returns:
true
if the points are the same; otherwisefalse
.
-
toXProperty
@Pure public javafx.beans.property.IntegerProperty toXProperty()
Replies the x coordinate of the target point property.- Returns:
- the x coordinate.
-
toYProperty
@Pure public javafx.beans.property.IntegerProperty toYProperty()
Replies the y coordinate of the target point property.- Returns:
- the y coordinate.
-
getToX
@Pure public final int getToX()
Description copied from interface:PathElement2ai
Replies the x coordinate of the target point.- Specified by:
getToX
in interfacePathElement2ai
- Returns:
- the x coordinate.
-
getToY
@Pure public final int getToY()
Description copied from interface:PathElement2ai
Replies the y coordinate of the target point.- Specified by:
getToY
in interfacePathElement2ai
- Returns:
- the y coordinate.
-
getType
@Pure public final PathElementType getType()
Description copied from interface:PathElement2D
Replies the type of the element.- Specified by:
getType
in interfacePathElement2ai
- Specified by:
getType
in interfacePathElement2D
- Returns:
true
if the points are the same; otherwisefalse
.
-
toArray
@Pure public abstract void toArray(javafx.beans.property.IntegerProperty[] array)
Copy the coords into the given array, except the source point.- Parameters:
array
- the output array.
-
toArray
@Pure public abstract javafx.beans.property.IntegerProperty[] toArray()
Copy the coords into an array, except the source point.- Returns:
- the array of the points, except the source point.
-
fromXProperty
@Pure public abstract javafx.beans.property.IntegerProperty fromXProperty()
Replies the x coordinate of the starting point property.- Returns:
- the x coordinate, or
null
if the type isPathElementType.MOVE_TO
.
-
fromYProperty
@Pure public abstract javafx.beans.property.IntegerProperty fromYProperty()
Replies the y coordinate of the starting point property.- Returns:
- the y coordinate, or
null
if the type isPathElementType.MOVE_TO
.
-
getCtrlX1
public int getCtrlX1()
Description copied from interface:PathElement2ai
Replies the x coordinate of the first control point.- Specified by:
getCtrlX1
in interfacePathElement2ai
- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlY1
public int getCtrlY1()
Description copied from interface:PathElement2ai
Replies the y coordinate of the first control point.- Specified by:
getCtrlY1
in interfacePathElement2ai
- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlX2
public int getCtrlX2()
Description copied from interface:PathElement2ai
Replies the x coordinate of the second control point.- Specified by:
getCtrlX2
in interfacePathElement2ai
- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getCtrlY2
public int getCtrlY2()
Description copied from interface:PathElement2ai
Replies the y coordinate of the second control point.- Specified by:
getCtrlY2
in interfacePathElement2ai
- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getRadiusX
public int getRadiusX()
Description copied from interface:PathElement2ai
Replies the x radius of the arc-to ellipse.- Specified by:
getRadiusX
in interfacePathElement2ai
- 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
- 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
- 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
- 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
- Returns:
true
iff the element will sweep clockwise around the ellipse, or0
if the type is notPathElementType.ARC_TO
.
-
ctrlX1Property
@Pure public javafx.beans.property.IntegerProperty ctrlX1Property()
Replies the property for the x coordinate of the first control point.- Returns:
- the x coordinate, or
null
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
ctrlY1Property
@Pure public javafx.beans.property.IntegerProperty ctrlY1Property()
Replies the property for the y coordinate of the first control point.- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
ctrlX2Property
@Pure public javafx.beans.property.IntegerProperty ctrlX2Property()
Replies the property for the x coordinate of the second control point.- Returns:
- the x coordinate, or
null
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
ctrlY2Property
@Pure public javafx.beans.property.IntegerProperty ctrlY2Property()
Replies the property for the y coordinate of the second control point.- Returns:
- the y coordinate, or
null
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
radiusXProperty
@Pure public javafx.beans.property.IntegerProperty radiusXProperty()
Replies the property for the radius along the x axis.- Returns:
- the x radius, or
null
if the type is notPathElementType.ARC_TO
.
-
radiusYProperty
@Pure public javafx.beans.property.IntegerProperty radiusYProperty()
Replies the property for the radius along the y axis.- Returns:
- the y radius, or
null
if the type is notPathElementType.ARC_TO
.
-
rotationXProperty
@Pure public javafx.beans.property.DoubleProperty rotationXProperty()
Replies the property for the rotation of the x axis.- Returns:
- the x-axis rotation, or
null
if the type is notPathElementType.ARC_TO
.
-
largeArcFlagProperty
@Pure public javafx.beans.property.BooleanProperty largeArcFlagProperty()
Replies the property for the large ellipse arc flag.- Returns:
- the flag, or
null
if the type is notPathElementType.ARC_TO
.
-
sweepFlagProperty
@Pure public javafx.beans.property.BooleanProperty sweepFlagProperty()
Replies the property for the sweep ellipse arc flag.- Returns:
- the flag, or
null
if the type is notPathElementType.ARC_TO
.
-
-