X
- type of X valuesY
- type of Y valuespublic class DataPointTooltip<X,Y> extends AbstractDataFormattingPlugin<X,Y>
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, yValueFormatterProperty
chartPaneProperty
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 |
---|---|
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, yValueFormatterProperty
chartPaneProperty, getChartChildren, getChartPane, getCharts, getLocationInPlotArea, layoutChildren, registerMouseEventHandler, setChartPane, toDataPoint, toDisplayPoint
public 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
propertypublic final DoubleProperty pickingDistanceProperty()
getPickingDistance()
,
setPickingDistance(double)
public final double getPickingDistance()
pickingDistanceProperty()
.public final void setPickingDistance(double distance)
pickingDistanceProperty()
.distance
- the new picking distanceCopyright © 2019 CERN. All rights reserved.