Class FloatValue

    • 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