Class GridLabelFormat
- java.lang.Object
-
- org.mapfish.print.map.geotools.grid.GridLabelFormat
-
- Direct Known Subclasses:
GridLabelFormat.Detailed
,GridLabelFormat.Simple
public abstract class GridLabelFormat extends java.lang.Object
Formats grid labels.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GridLabelFormat.Detailed
Label format where value and unit are formatted with different patterns.static class
GridLabelFormat.Simple
Label format where value and unit are formatted at once.
-
Constructor Summary
Constructors Constructor Description GridLabelFormat()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.String
format(double value, java.lang.String unit)
Format a label using the given value and unit.static GridLabelFormat
fromConfig(GridParam param)
Create an instance from the given config.
-
-
-
Method Detail
-
fromConfig
public static GridLabelFormat fromConfig(GridParam param)
Create an instance from the given config.- Parameters:
param
- Grid param from the request.
-
format
public abstract java.lang.String format(double value, java.lang.String unit)
Format a label using the given value and unit.- Parameters:
value
- Value.unit
- Unit.
-
-