public interface ValuesFormatter
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatTooltip(double value,
double minValue,
double maxValue,
int pixelsCount)
This method will be called only if you don't implement
formatTooltip(String, double, double, double, int) |
default java.lang.String |
formatTooltip(java.lang.String alias,
double value,
double minValue,
double maxValue,
int pixelsCount)
This is the main alias-specific method to format tooltip.
|
java.lang.String |
formatWidget(double value)
This method will be called only if you don't implement
formatWidget(String, double) |
default java.lang.String |
formatWidget(java.lang.String alias,
double value)
This is the main alias-specific method to format widget.
|
java.lang.String formatTooltip(double value,
double minValue,
double maxValue,
int pixelsCount)
formatTooltip(String, double, double, double, int)value - value displayed in tooltipminValue - bottom panel bottom pixel valuemaxValue - bottom panel top pixel valuepixelsCount - height of bottom paneldefault java.lang.String formatTooltip(java.lang.String alias,
double value,
double minValue,
double maxValue,
int pixelsCount)
formatTooltip(double, double, double, int) will not be called. Otherwise, it will be called to format.alias - of instrumentvalue - value displayed in tooltipminValue - bottom panel bottom pixel valuemaxValue - bottom panel top pixel valuepixelsCount - height of bottom paneljava.lang.String formatWidget(double value)
formatWidget(String, double)value - value displayed in widgetdefault java.lang.String formatWidget(java.lang.String alias,
double value)
formatTooltip(double, double, double, int) will not be called. Otherwise, it will be called to format.alias - of instrumentvalue - value displayed in widget