Class PathElement2dfx.CurvePathElement2dfx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.dfx.PathElement2dfx
-
- org.arakhne.afc.math.geometry.d2.dfx.PathElement2dfx.CurvePathElement2dfx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,PathElement2afp
,PathElement2D
- Enclosing class:
- PathElement2dfx
static class PathElement2dfx.CurvePathElement2dfx extends PathElement2dfx
An element of the path that represents aCURVE_TO
.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:49
- Author:
- Stéphane GALLAND, Hamza JAFFALI
- 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 CurvePathElement2dfx(javafx.beans.property.DoubleProperty fromx, javafx.beans.property.DoubleProperty fromy, javafx.beans.property.DoubleProperty ctrlx1, javafx.beans.property.DoubleProperty ctrly1, javafx.beans.property.DoubleProperty ctrlx2, javafx.beans.property.DoubleProperty ctrly2, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy)
Constructor.CurvePathElement2dfx(Point2dfx fromPoint, Point2dfx ctrl1Point, Point2dfx ctrl2Point, Point2dfx toPoint)
Constructor bt setting.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.DoubleProperty
ctrlX1Property()
Replies the property for the x coordinate of the first control point.javafx.beans.property.DoubleProperty
ctrlX2Property()
Replies the property for the x coordinate of the second control point.javafx.beans.property.DoubleProperty
ctrlY1Property()
Replies the property for the y coordinate of the first control point.javafx.beans.property.DoubleProperty
ctrlY2Property()
Replies the property for the y coordinate of the second control point.boolean
equals(Object obj)
javafx.beans.property.DoubleProperty
fromXProperty()
Replies the property for the x coordinate of the starting point.javafx.beans.property.DoubleProperty
fromYProperty()
Replies the property for the y coordinate of the starting point.double
getCtrlX1()
Replies the x coordinate of the first control point.double
getCtrlX2()
Replies the x coordinate of the second control point.double
getCtrlY1()
Replies the y coordinate of the first control point.double
getCtrlY2()
Replies the y coordinate of the second control point.double
getFromX()
Replies the x coordinate of the starting point.double
getFromY()
Replies the y coordinate of the starting point.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.DoubleProperty[]
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.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
getLargeArcFlag, getRadiusX, getRadiusY, getRotationX, getSweepFlag, getToX, getToY, getType, isEmpty, largeArcFlagProperty, radiusXProperty, radiusYProperty, rotationXProperty, sweepFlagProperty, toString, toXProperty, toYProperty
-
-
-
-
Constructor Detail
-
CurvePathElement2dfx
CurvePathElement2dfx(javafx.beans.property.DoubleProperty fromx, javafx.beans.property.DoubleProperty fromy, javafx.beans.property.DoubleProperty ctrlx1, javafx.beans.property.DoubleProperty ctrly1, javafx.beans.property.DoubleProperty ctrlx2, javafx.beans.property.DoubleProperty ctrly2, javafx.beans.property.DoubleProperty tox, javafx.beans.property.DoubleProperty toy)
Constructor.- Parameters:
fromx
- x coordinate of the origin point.fromy
- y coordinate of the origin point.ctrlx1
- x coordinate of the first control point.ctrly1
- y coordinate of the first control point.ctrlx2
- x coordinate of the second control point.ctrly2
- y coordinate of the second control point.tox
- x coordinate of the target point.toy
- y coordinate of the target point.
-
CurvePathElement2dfx
CurvePathElement2dfx(Point2dfx fromPoint, Point2dfx ctrl1Point, Point2dfx ctrl2Point, Point2dfx toPoint)
Constructor bt setting.- Parameters:
fromPoint
- the point to set as the origin point.ctrl1Point
- the point to set as the first control point.ctrl2Point
- the point to set as the second control point.toPoint
- the point to set as the target point.
-
-
Method Detail
-
equals
@Pure public boolean equals(Object obj)
- Specified by:
equals
in classPathElement2dfx
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCode
in classPathElement2dfx
-
isEmptyProperty
@Pure public javafx.beans.property.BooleanProperty isEmptyProperty()
Description copied from class:PathElement2dfx
Replies the property that indicates if this patth element is empty.- Specified by:
isEmptyProperty
in classPathElement2dfx
- 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:PathElement2afp
Copy 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:PathElement2dfx
Copy the coords into the given array, except the source point.- Specified by:
toArray
in classPathElement2dfx
- Parameters:
array
- the output array.
-
toArray
@Pure public void toArray(double[] array)
Description copied from interface:PathElement2afp
Copy 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:PathElement2dfx
Copy the coords into an array, except the source point.- Specified by:
toArray
in classPathElement2dfx
- Returns:
- the array of the points, except the source point.
-
getFromX
@Pure public double getFromX()
Description copied from interface:PathElement2afp
Replies the x coordinate of the starting point.- Returns:
- the x coordinate, or
0
if the type isPathElementType.MOVE_TO
.
-
getFromY
@Pure public double getFromY()
Description copied from interface:PathElement2afp
Replies the y coordinate of the starting point.- Returns:
- the y coordinate, or
0
if the type isPathElementType.MOVE_TO
.
-
getCtrlX1
@Pure public double getCtrlX1()
Description copied from interface:PathElement2afp
Replies the x coordinate of the first control point.- Specified by:
getCtrlX1
in interfacePathElement2afp
- Overrides:
getCtrlX1
in classPathElement2dfx
- Returns:
- the x coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlY1
@Pure public double getCtrlY1()
Description copied from interface:PathElement2afp
Replies the y coordinate of the first control point.- Specified by:
getCtrlY1
in interfacePathElement2afp
- Overrides:
getCtrlY1
in classPathElement2dfx
- Returns:
- the y coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlX2
@Pure public double getCtrlX2()
Description copied from interface:PathElement2afp
Replies the x coordinate of the second control point.- Specified by:
getCtrlX2
in interfacePathElement2afp
- Overrides:
getCtrlX2
in classPathElement2dfx
- Returns:
- the x coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getCtrlY2
@Pure public double getCtrlY2()
Description copied from interface:PathElement2afp
Replies the y coordinate of the second control point.- Specified by:
getCtrlY2
in interfacePathElement2afp
- Overrides:
getCtrlY2
in classPathElement2dfx
- Returns:
- the y coordinate, or
0
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
fromXProperty
@Pure public javafx.beans.property.DoubleProperty fromXProperty()
Description copied from class:PathElement2dfx
Replies the property for the x coordinate of the starting point.- Specified by:
fromXProperty
in classPathElement2dfx
- Returns:
- the x coordinate, or
null
if the type isPathElementType.MOVE_TO
.
-
fromYProperty
@Pure public javafx.beans.property.DoubleProperty fromYProperty()
Description copied from class:PathElement2dfx
Replies the property for the y coordinate of the starting point.- Specified by:
fromYProperty
in classPathElement2dfx
- Returns:
- the y coordinate, or
null
if the type isPathElementType.MOVE_TO
.
-
ctrlX1Property
@Pure public javafx.beans.property.DoubleProperty ctrlX1Property()
Description copied from class:PathElement2dfx
Replies the property for the x coordinate of the first control point.- Overrides:
ctrlX1Property
in classPathElement2dfx
- Returns:
- the x coordinate, or
null
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
ctrlY1Property
@Pure public javafx.beans.property.DoubleProperty ctrlY1Property()
Description copied from class:PathElement2dfx
Replies the property for the y coordinate of the first control point.- Overrides:
ctrlY1Property
in classPathElement2dfx
- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
ctrlX2Property
@Pure public javafx.beans.property.DoubleProperty ctrlX2Property()
Description copied from class:PathElement2dfx
Replies the property for the x coordinate of the second control point.- Overrides:
ctrlX2Property
in classPathElement2dfx
- 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.DoubleProperty ctrlY2Property()
Description copied from class:PathElement2dfx
Replies the property for the y coordinate of the second control point.- Overrides:
ctrlY2Property
in classPathElement2dfx
- Returns:
- the y coordinate, or
null
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
-