Class Length

java.lang.Object
de.xima.fc.common.graphdot.Length
All Implemented Interfaces:
Serializable, CharSequence
Direct Known Subclasses:
Length.Inches, Length.Points

public abstract class Length extends Object
A length with some intrinsic unit for graphviz attribute values.
Since:
8.2.0
Author:
XIMA MEDIA GmbH
See Also:
  • 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

      public final String toString()
      Specified by:
      toString in interface CharSequence
    • getScaleIntrinsicToInches

      protected abstract double getScaleIntrinsicToInches()
    • toInches

      public static Length.LengthFactory<Length.Inches> toInches()
      Gets a factory for creating length values in inches.
      Returns:
      A factory for creating length values in inches.
    • toPoints

      public static Length.LengthFactory<Length.Points> toPoints()
      Gets a factory for creating length values in points.
      Returns:
      A factory for creating length values in points.
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • charAt

      default char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • chars

      default IntStream chars()
      Specified by:
      chars in interface CharSequence
    • codePoints

      default IntStream codePoints()
      Specified by:
      codePoints in interface CharSequence
    • length

      default int length()
      Specified by:
      length in interface CharSequence
    • subSequence

      default CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence