Class Length
java.lang.Object
de.xima.fc.common.graphdot.Length
- All Implemented Interfaces:
Serializable, CharSequence
- Direct Known Subclasses:
Length.Inches, Length.Points
A length with some intrinsic unit for graphviz attribute values.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classALengthwith the intrinsic unit inches.static final classLength.LengthFactory<L extends Length>Factory for creating length values in various different units.static final classALengthwith the intrinsic unit points. -
Method Summary
Modifier and TypeMethodDescriptionfinal doubleGets the length in centimeters.default charcharAt(int index) default IntStreamchars()default IntStreamfinal doubleGets the length in decimeters.final booleanfinal doubleGets the intrinsic value in the unit of this length attribute.protected abstract doublefinal inthashCode()final doubleinches()Gets the length in inches.default intlength()final doubleGets the length in millimeters.final doublepoints()Gets the length in points.default CharSequencesubSequence(int start, int end) static Length.LengthFactory<Length.Inches> toInches()Gets a factory for creating length values in inches.static Length.LengthFactory<Length.Points> toPoints()Gets a factory for creating length values in points.final StringtoString()
-
Method Details
-
centimeters
public final double centimeters()Gets the length in centimeters.- Returns:
- The length in centimeters.
-
decimeters
public final double decimeters()Gets the length in decimeters.- Returns:
- The length in decimeters.
-
getIntrinsicValue
public final double getIntrinsicValue()Gets the intrinsic value in the unit of this length attribute.- Returns:
- The intrinsic value in the unit of this length attribute.
-
inches
public final double inches()Gets the length in inches.- Returns:
- The length in inches.
-
millimeters
public final double millimeters()Gets the length in millimeters.- Returns:
- The length in millimeters.
-
points
public final double points()Gets the length in points.- Returns:
- The length in points.
-
toString
- Specified by:
toStringin interfaceCharSequence
-
getScaleIntrinsicToInches
protected abstract double getScaleIntrinsicToInches() -
toInches
Gets a factory for creating length values in inches.- Returns:
- A factory for creating length values in inches.
-
toPoints
Gets a factory for creating length values in points.- Returns:
- A factory for creating length values in points.
-
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
-