Class GridLabelFormat
java.lang.Object
org.mapfish.print.map.geotools.grid.GridLabelFormat
- Direct Known Subclasses:
GridLabelFormat.Detailed
,GridLabelFormat.Simple
Formats grid labels.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Label format where value and unit are formatted with different patterns.static class
Label format where value and unit are formatted at once. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Format a label using the given value and unit.static GridLabelFormat
fromConfig
(GridParam param) Create an instance from the given config.
-
Constructor Details
-
GridLabelFormat
public GridLabelFormat()
-
-
Method Details
-
fromConfig
Create an instance from the given config.- Parameters:
param
- Grid param from the request.
-
format
Format a label using the given value and unit.- Parameters:
value
- Value.unit
- Unit.
-