Class PathElement2ifx.CurvePathElement2ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx
-
- org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx.CurvePathElement2ifx
-
- All Implemented Interfaces:
Serializable
,Cloneable
,PathElement2ai
,PathElement2D
- Enclosing class:
- PathElement2ifx
static class PathElement2ifx.CurvePathElement2ifx extends PathElement2ifx
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
- 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 CurvePathElement2ifx(javafx.beans.property.IntegerProperty fromx, javafx.beans.property.IntegerProperty fromy, javafx.beans.property.IntegerProperty ctrlx1, javafx.beans.property.IntegerProperty ctrly1, javafx.beans.property.IntegerProperty ctrlx2, javafx.beans.property.IntegerProperty ctrly2, javafx.beans.property.IntegerProperty tox, javafx.beans.property.IntegerProperty toy)
Constructor.CurvePathElement2ifx(Point2ifx fromPoint, Point2ifx ctrl1Point, Point2ifx ctrl2Point, Point2ifx toPoint)
Constructor by setting.
-
Method Summary
All Methods Instance 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.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
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.int
getFromX()
Replies the x coordinate of the starting point.int
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.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
getLargeArcFlag, getRadiusX, getRadiusY, getRotationX, getSweepFlag, getToX, getToY, getType, isEmpty, largeArcFlagProperty, radiusXProperty, radiusYProperty, rotationXProperty, sweepFlagProperty, toString, toXProperty, toYProperty
-
-
-
-
Constructor Detail
-
CurvePathElement2ifx
CurvePathElement2ifx(javafx.beans.property.IntegerProperty fromx, javafx.beans.property.IntegerProperty fromy, javafx.beans.property.IntegerProperty ctrlx1, javafx.beans.property.IntegerProperty ctrly1, javafx.beans.property.IntegerProperty ctrlx2, javafx.beans.property.IntegerProperty ctrly2, javafx.beans.property.IntegerProperty tox, javafx.beans.property.IntegerProperty 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.
-
CurvePathElement2ifx
CurvePathElement2ifx(Point2ifx fromPoint, Point2ifx ctrl1Point, Point2ifx ctrl2Point, Point2ifx toPoint)
Constructor by 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 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(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.
-
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.
-
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
.
-
getCtrlX1
@Pure public int getCtrlX1()
Description copied from interface:PathElement2ai
Replies the x coordinate of the first control point.- Specified by:
getCtrlX1
in interfacePathElement2ai
- Overrides:
getCtrlX1
in classPathElement2ifx
- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlY1
@Pure public int getCtrlY1()
Description copied from interface:PathElement2ai
Replies the y coordinate of the first control point.- Specified by:
getCtrlY1
in interfacePathElement2ai
- Overrides:
getCtrlY1
in classPathElement2ifx
- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
, orPathElementType.CLOSE
.
-
getCtrlX2
@Pure public int getCtrlX2()
Description copied from interface:PathElement2ai
Replies the x coordinate of the second control point.- Specified by:
getCtrlX2
in interfacePathElement2ai
- Overrides:
getCtrlX2
in classPathElement2ifx
- Returns:
- the x coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
getCtrlY2
@Pure public int getCtrlY2()
Description copied from interface:PathElement2ai
Replies the y coordinate of the second control point.- Specified by:
getCtrlY2
in interfacePathElement2ai
- Overrides:
getCtrlY2
in classPathElement2ifx
- Returns:
- the y coordinate, or
Double.NaN
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
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
.
-
ctrlX1Property
@Pure public javafx.beans.property.IntegerProperty ctrlX1Property()
Description copied from class:PathElement2ifx
Replies the property for the x coordinate of the first control point.- Overrides:
ctrlX1Property
in classPathElement2ifx
- 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()
Description copied from class:PathElement2ifx
Replies the property for the y coordinate of the first control point.- Overrides:
ctrlY1Property
in classPathElement2ifx
- 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()
Description copied from class:PathElement2ifx
Replies the property for the x coordinate of the second control point.- Overrides:
ctrlX2Property
in classPathElement2ifx
- 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()
Description copied from class:PathElement2ifx
Replies the property for the y coordinate of the second control point.- Overrides:
ctrlY2Property
in classPathElement2ifx
- Returns:
- the y coordinate, or
null
if the type isPathElementType.MOVE_TO
,PathElementType.LINE_TO
,PathElementType.QUAD_TO
, orPathElementType.CLOSE
.
-
-