Class FloatValue

  • All Implemented Interfaces:
    Value
    Direct Known Subclasses:
    LineHeightValue

    public class FloatValue
    extends AbstractValue
    This class represents float values.
    Version:
    $Id: FloatValue.java 1733416 2016-03-03 07:07:13Z gadams $
    • Field Detail

      • UNITS

        protected static final java.lang.String[] UNITS
        The unit types representations
      • floatValue

        protected float floatValue
        The float value
      • unitType

        protected short unitType
        The unit type
    • Constructor Detail

      • FloatValue

        public FloatValue​(short unitType,
                          float floatValue)
        Creates a new value.
    • Method Detail

      • getCssText

        public static java.lang.String getCssText​(short unit,
                                                  float value)
        Returns the CSS text associated with the given type/value pair.
      • getCssText

        public java.lang.String getCssText()
        A string representation of the current value.
      • toString

        public java.lang.String toString()
        Returns a printable representation of this value.
        Overrides:
        toString in class java.lang.Object