public class DataPointTooltip extends AbstractDataFormattingPlugin
pickingDistanceProperty() from the mouse cursor.
CSS style class name: "chart-datapoint-tooltip-label"
| Type | Property and Description |
|---|---|
DoubleProperty |
pickingDistance
Distance of the mouse cursor from the data point (expressed in display units) that should trigger showing the
tool tip.
|
xValueFormatterProperty, yValueFormatterPropertyaddButtonsToToolBarProperty, chartProperty| Modifier and Type | Class and Description |
|---|---|
protected class |
DataPointTooltip.DataPoint |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PICKING_DISTANCE
The default distance between the data point coordinates and mouse cursor that triggers showing the tool tip
label.
|
static String |
STYLE_CLASS_LABEL
Name of the CSS class of the tool tip label.
|
| Constructor and Description |
|---|
DataPointTooltip()
Creates a new instance of DataPointTooltip class with {
picking distance
initialized to 5. |
DataPointTooltip(double pickingDistance)
Creates a new instance of DataPointTooltip class.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatLabel(DataPointTooltip.DataPoint dataPoint) |
protected String |
getDataLabelSafe(DataSet dataSet,
int index) |
protected String |
getDefaultDataLabel(DataSet dataSet,
int index)
Returns label of a data point specified by the index.
|
double |
getPickingDistance()
Returns the value of the
pickingDistanceProperty(). |
DoubleProperty |
pickingDistanceProperty()
Distance of the mouse cursor from the data point (expressed in display units) that should trigger showing the
tool tip.
|
void |
setPickingDistance(double distance)
Sets the value of
pickingDistanceProperty(). |
formatData, getXValueFormatter, getYValueFormatter, setXValueFormatter, setYValueFormatter, xValueFormatterProperty, yValueFormatterPropertyaddButtonsToToolBarProperty, chartProperty, getChart, getChartChildren, getLocationInPlotArea, isAddButtonsToToolBar, layoutChildren, registerInputEventHandler, setAddButtonsToToolBar, setChart, toDataPoint, toDisplayPointpublic final DoubleProperty pickingDistanceProperty
getPickingDistance(),
setPickingDistance(double)public static final String STYLE_CLASS_LABEL
public static final int DEFAULT_PICKING_DISTANCE
public DataPointTooltip()
picking distance
initialized to 5.public DataPointTooltip(double pickingDistance)
pickingDistance - the initial value for the pickingDistance propertyprotected String formatLabel(DataPointTooltip.DataPoint dataPoint)
protected String getDefaultDataLabel(DataSet dataSet, int index)
index - data point indexnull if none label has been specified for
this data point.public final double getPickingDistance()
pickingDistanceProperty().public final DoubleProperty pickingDistanceProperty()
getPickingDistance(),
setPickingDistance(double)public final void setPickingDistance(double distance)
pickingDistanceProperty().distance - the new picking distanceCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.