public abstract class AbstractDataFormattingPlugin extends ChartPlugin
formatData(de.gsi.chart.Chart, de.gsi.dataset.spi.utils.Tuple<java.lang.Number, java.lang.Number>).| Type | Property and Description |
|---|---|
ObjectProperty<StringConverter<Number>> |
xValueFormatter
StringConverter used to format X values.
|
ObjectProperty<StringConverter<Number>> |
yValueFormatter
StringConverter used to format Y values.
|
addButtonsToToolBarProperty, chartProperty| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataFormattingPlugin()
Creates a new instance of AbstractDataIndicator.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatData(Chart chart,
Tuple<Number,Number> data)
Formats the data to be displayed by this plugin.
|
StringConverter<Number> |
getXValueFormatter()
Returns the value of the
xValueFormatterProperty(). |
StringConverter<Number> |
getYValueFormatter()
Returns the value of the
xValueFormatterProperty(). |
void |
setXValueFormatter(StringConverter<Number> formatter)
Sets the value of the
xValueFormatterProperty(). |
void |
setYValueFormatter(StringConverter<Number> formatter)
Sets the value of the
xValueFormatterProperty(). |
ObjectProperty<StringConverter<Number>> |
xValueFormatterProperty()
StringConverter used to format X values.
|
ObjectProperty<StringConverter<Number>> |
yValueFormatterProperty()
StringConverter used to format Y values.
|
addButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, layoutChildren, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPointpublic final ObjectProperty<StringConverter<Number>> xValueFormatterProperty
null a default will be used.public final ObjectProperty<StringConverter<Number>> yValueFormatterProperty
null a default will be used.protected AbstractDataFormattingPlugin()
protected String formatData(Chart chart, Tuple<Number,Number> data)
xValueFormatterProperty() and
yValueFormatterProperty() to obtain the corresponding formatters. If it is null and the axis is
a ValueAxis - the method will use tick label formatter. If this
one is also not initialized - a default formatter is used.
Can be overridden to modify formatting of the data.
chart - reference to chartdata - the data point to be formattedpublic final StringConverter<Number> getXValueFormatter()
xValueFormatterProperty().public final StringConverter<Number> getYValueFormatter()
xValueFormatterProperty().public final void setXValueFormatter(StringConverter<Number> formatter)
xValueFormatterProperty().formatter - the X value formatterpublic final void setYValueFormatter(StringConverter<Number> formatter)
xValueFormatterProperty().formatter - the X value formatterpublic final ObjectProperty<StringConverter<Number>> xValueFormatterProperty()
null a default will be used.public final ObjectProperty<StringConverter<Number>> yValueFormatterProperty()
null a default will be used.Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.