Class GridLabelFormat

java.lang.Object
org.mapfish.print.map.geotools.grid.GridLabelFormat
Direct Known Subclasses:
GridLabelFormat.Detailed, GridLabelFormat.Simple

public abstract class GridLabelFormat extends Object
Formats grid labels.
  • Constructor Details

    • GridLabelFormat

      public GridLabelFormat()
  • Method Details

    • fromConfig

      public static GridLabelFormat fromConfig(GridParam param)
      Create an instance from the given config.
      Parameters:
      param - Grid param from the request.
    • format

      public abstract String format(double value, String unit)
      Format a label using the given value and unit.
      Parameters:
      value - Value.
      unit - Unit.