Class HtmlLength


  • public final class HtmlLength
    extends java.lang.Object
    • Constructor Detail

      • HtmlLength

        public HtmlLength​(java.lang.String spec)
                   throws java.lang.IndexOutOfBoundsException,
                          java.lang.NumberFormatException
        Throws:
        java.lang.IndexOutOfBoundsException
        java.lang.NumberFormatException
      • HtmlLength

        public HtmlLength​(int pixels)
    • Method Detail

      • getLengthType

        public final int getLengthType()
        Returns:
        Returns the lengthType.
      • getRawValue

        public final int getRawValue()
        Returns:
        Returns the spec.
      • getLength

        public final int getLength​(int availLength)
      • divideBy

        public final void divideBy​(int denominator)
      • isPreferredOver

        public final boolean isPreferredOver​(HtmlLength otherLength)