Class GridLabelFormat.Detailed

  • Enclosing class:
    GridLabelFormat

    public static class GridLabelFormat.Detailed
    extends GridLabelFormat
    Label format where value and unit are formatted with different patterns.
    • Constructor Summary

      Constructors 
      Constructor Description
      Detailed​(java.lang.String valueFormat, java.lang.String unitFormat, java.lang.String formatDecimalSeparator, java.lang.String formatGroupingSeparator)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(double value, java.lang.String unit)
      Format a label using the given value and unit.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Detailed

        public Detailed​(java.lang.String valueFormat,
                        java.lang.String unitFormat,
                        java.lang.String formatDecimalSeparator,
                        java.lang.String formatGroupingSeparator)
        Constructor.
        Parameters:
        valueFormat - Value format.
        unitFormat - Unit format.
        formatDecimalSeparator - Decimal separator.
        formatGroupingSeparator - Grouping separator.
    • Method Detail

      • format

        public final java.lang.String format​(double value,
                                             java.lang.String unit)
        Description copied from class: GridLabelFormat
        Format a label using the given value and unit.
        Specified by:
        format in class GridLabelFormat
        Parameters:
        value - Value.
        unit - Unit.