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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mapfish.print.map.geotools.grid.GridLabelFormat
GridLabelFormat.Detailed, GridLabelFormat.Simple
-
-
Constructor Summary
Constructors Constructor Description Detailed(java.lang.String valueFormat, java.lang.String unitFormat, java.lang.String formatDecimalSeparator, java.lang.String formatGroupingSeparator)
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 org.mapfish.print.map.geotools.grid.GridLabelFormat
fromConfig
-
-
-
-
Constructor Detail
-
Detailed
public Detailed(java.lang.String valueFormat, java.lang.String unitFormat, java.lang.String formatDecimalSeparator, java.lang.String formatGroupingSeparator)
Constructor.- Parameters:
valueFormat
- Value format.unitFormat
- Unit format.formatDecimalSeparator
- Decimal separator.formatGroupingSeparator
- Grouping separator.
-
-
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 classGridLabelFormat
- Parameters:
value
- Value.unit
- Unit.
-
-