Class GridLabelFormat.Detailed

java.lang.Object
org.mapfish.print.map.geotools.grid.GridLabelFormat
org.mapfish.print.map.geotools.grid.GridLabelFormat.Detailed
Enclosing class:
GridLabelFormat

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

    • Detailed

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

    • format

      public final String format(double value, 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.