Class LengthPoint<L extends Length>
java.lang.Object
de.xima.fc.common.graphdot.LengthPoint<L>
- Type Parameters:
L- Type of the length.
- All Implemented Interfaces:
Serializable, CharSequence
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classLengthPoint.LengthPointFactory<L extends Length>A factory for creatingLengthPointfrom values in a given unit. -
Constructor Summary
ConstructorsConstructorDescriptionLengthPoint(boolean fixed, L x, L y, L z) Creates a new point with the given coordinates. -
Method Summary
Modifier and TypeMethodDescriptiondefault charcharAt(int index) default IntStreamchars()default IntStreamfinal booleanstatic <L extends Length>
LengthPoint<L> fixed(L x, L y) Creates a new fixed 2D point with the given coordinates.static <L extends Length>
LengthPoint<L> fixed(L x, L y, L z) Creates a new fixed 3D point with the given coordinates.getX()Gets the X position of the point.getY()Gets the Y position of the point.getZ()Gets the Z position of the point.final inthashCode()booleanis2D()Checks whether this is a 2D point.booleanis3D()Checks whether this is a 3D point.booleanisFixed()Get the flag that indicates that the node position should not change.default intlength()static <L extends Length>
LengthPoint<L> loose(L x, L y) Creates a new loose 2D point with the given coordinates.static <L extends Length>
LengthPoint<L> loose(L x, L y, L z) Creates a new loose 3D point with the given coordinates.default CharSequencesubSequence(int start, int end) toInches()Gets a factory for creating length points from inch values.toPoints()Gets a factory for creating length points from point values.toString()
-
Constructor Details
-
LengthPoint
-
-
Method Details
-
getX
-
getY
-
getZ
-
is2D
public boolean is2D()Checks whether this is a 2D point.- Returns:
- Whether this is a 2D point.
-
is3D
public boolean is3D()Checks whether this is a 3D point.- Returns:
- Whether this is a 3D point.
-
isFixed
public boolean isFixed()Get the flag that indicates that the node position should not change.- Returns:
- Indicates that the node position should not change.
-
toString
- Specified by:
toStringin interfaceCharSequence
-
fixed
Creates a new fixed 2D point with the given coordinates.- Type Parameters:
L- Type of the length.- Parameters:
x- The X position of the point.y- The Y position of the point.- Returns:
- A new fixed 2D point.
-
fixed
Creates a new fixed 3D point with the given coordinates.- Type Parameters:
L- Type of the length.- Parameters:
x- The X position of the point.y- The Y position of the point.z- The Z position of the point.- Returns:
- A new fixed 3D point.
-
loose
Creates a new loose 2D point with the given coordinates.- Type Parameters:
L- Type of the length.- Parameters:
x- The X position of the point.y- The Y position of the point.- Returns:
- A new loose 2D point.
-
loose
Creates a new loose 3D point with the given coordinates.- Type Parameters:
L- Type of the length.- Parameters:
x- The X position of the point.y- The Y position of the point.z- The Z position of the point.- Returns:
- A new loose 3D point.
-
toInches
Gets a factory for creating length points from inch values.- Returns:
- A factory for creating length points from inch values.
-
toPoints
Gets a factory for creating length points from point values.- Returns:
- A factory for creating length points from point values.
-
equals
-
hashCode
-
charAt
default char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
chars
- Specified by:
charsin interfaceCharSequence
-
codePoints
- Specified by:
codePointsin interfaceCharSequence
-
length
default int length()- Specified by:
lengthin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-