public abstract class GridLabelFormat
extends java.lang.Object
| Modifier and Type | Class and 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 and Description |
|---|
GridLabelFormat() |
| Modifier and Type | Method and 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.
|
public static GridLabelFormat fromConfig(GridParam param)
param - Grid param from the request.public abstract java.lang.String format(double value,
java.lang.String unit)
value - Value.unit - Unit.