Class GridLabelFormat.Simple

  • Enclosing class:
    GridLabelFormat

    public static class GridLabelFormat.Simple
    extends GridLabelFormat
    Label format where value and unit are formatted at once.
    • Constructor Summary

      Constructors 
      Constructor Description
      Simple​(java.lang.String labelFormat)
      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

      • Simple

        public Simple​(java.lang.String labelFormat)
        Constructor.
        Parameters:
        labelFormat - Label format.
    • 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.