Class PathElement2ifx.LinePathElement2ifx
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx
-
- org.arakhne.afc.math.geometry.d2.ifx.PathElement2ifx.LinePathElement2ifx
-
- All Implemented Interfaces:
Serializable,Cloneable,PathElement2ai,PathElement2D
- Enclosing class:
- PathElement2ifx
static class PathElement2ifx.LinePathElement2ifx extends PathElement2ifx
An element of the path that represents aLINE_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 LinePathElement2ifx(javafx.beans.property.IntegerProperty fromx, javafx.beans.property.IntegerProperty fromy, javafx.beans.property.IntegerProperty tox, javafx.beans.property.IntegerProperty toy)Constructor.LinePathElement2ifx(Point2ifx fromPoint, Point2ifx toPoint)Constructor by setting.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)javafx.beans.property.IntegerPropertyfromXProperty()Replies the x coordinate of the starting point property.javafx.beans.property.IntegerPropertyfromYProperty()Replies the y coordinate of the starting point property.intgetFromX()Replies the x coordinate of the starting point.intgetFromY()Replies the y coordinate of the starting point.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.IntegerProperty[]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.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, getLargeArcFlag, getRadiusX, getRadiusY, getRotationX, getSweepFlag, getToX, getToY, getType, isEmpty, largeArcFlagProperty, radiusXProperty, radiusYProperty, rotationXProperty, sweepFlagProperty, toString, toXProperty, toYProperty
-
-
-
-
Constructor Detail
-
LinePathElement2ifx
LinePathElement2ifx(javafx.beans.property.IntegerProperty fromx, javafx.beans.property.IntegerProperty fromy, 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.tox- x coordinate of the target point.toy- y coordinate of the target point.
-
-
Method Detail
-
equals
@Pure public boolean equals(Object obj)
- Specified by:
equalsin classPathElement2ifx
-
hashCode
@Pure public int hashCode()
- Specified by:
hashCodein classPathElement2ifx
-
isEmptyProperty
@Pure public javafx.beans.property.BooleanProperty isEmptyProperty()
Description copied from class:PathElement2ifxReplies the property that indicates if this patth element is empty.- Specified by:
isEmptyPropertyin classPathElement2ifx- 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:PathElement2aiCopy 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:PathElement2aiCopy 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:PathElement2ifxCopy the coords into an array, except the source point.- Specified by:
toArrayin 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:PathElement2ifxCopy the coords into the given array, except the source point.- Specified by:
toArrayin classPathElement2ifx- Parameters:
array- the output array.
-
getFromX
@Pure public int getFromX()
Description copied from interface:PathElement2aiReplies the x coordinate of the starting point.- Returns:
- the x coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO.
-
getFromY
@Pure public int getFromY()
Description copied from interface:PathElement2aiReplies the y coordinate of the starting point.- Returns:
- the y coordinate, or
Double.NaNif the type isPathElementType.MOVE_TO.
-
fromXProperty
@Pure public javafx.beans.property.IntegerProperty fromXProperty()
Description copied from class:PathElement2ifxReplies the x coordinate of the starting point property.- Specified by:
fromXPropertyin classPathElement2ifx- Returns:
- the x coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
fromYProperty
@Pure public javafx.beans.property.IntegerProperty fromYProperty()
Description copied from class:PathElement2ifxReplies the y coordinate of the starting point property.- Specified by:
fromYPropertyin classPathElement2ifx- Returns:
- the y coordinate, or
nullif the type isPathElementType.MOVE_TO.
-
-