It is possible to install Tooltips on data items / symbols. For example the following code snippet installs Tooltip on the 1st data item.
XYChart.Data item = ( XYChart.Data)series.getData().get(0);
Tooltip.install(item.getNode(), new Tooltip("Symbol-0"));
| Modifier and Type | Class and Description |
|---|---|
| public static class | XYChart.
the data X value type X, the data Y value type Y>A single data item with data for 2 axis charts |
| public static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private BooleanProperty | alternativeColumnFillVisible
If true then alternative vertical columns will have fills |
| private BooleanProperty | alternativeRowFillVisible
If true then alternative horizontal rows will have fills |
| private final BitSet | |
| private ObjectProperty | data
XYCharts data |
| pack-priv static String | |
| private final List | |
| private final Path | |
| private BooleanProperty | horizontalGridLinesVisible
True if horizontal grid lines should be drawn |
| private final Path | |
| private final Line | |
| private BooleanProperty | horizontalZeroLineVisible
If this is true and the horizontal axis has both positive and negative values then a additional axis line will be drawn at the zero point |
| private Legend | |
| private final Group | |
| private final Rectangle | |
| private final Region | |
| private final Group | |
| private boolean | |
| private final ListChangeListener | seriesChanged
This is called when a series is added or removed from the chart |
| pack-priv final Map | |
| private final Path | |
| private BooleanProperty | verticalGridLinesVisible
True if vertical grid lines should be drawn |
| private final Path | |
| private final Line | |
| private BooleanProperty | verticalZeroLineVisible
If this is true and the vertical axis has both positive and negative values then a additional axis line will be drawn at the zero point |
| private final Axis | |
| private ReadOnlyObjectProperty | |
| private final Axis | |
| private ReadOnlyObjectProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final BooleanProperty | |
| public final BooleanProperty | |
| pack-priv Legend. | Returns: new legend item for this seriesthe series for this legend item series,the index of the series seriesIndex)Called by the updateLegend for each series in the chart in order to create new legend item |
| pack-priv final KeyFrame[] | Returns: array of two KeyFrames from zero to fadeOutTimeThe series to remove series,Time to fade out, in milliseconds fadeOutTime)Creates an array of KeyFrames for fading out nodes representing a series |
| protected final ObjectProperty | Returns: ObjectProperty<Object> The current extra value ObjectPropertyThe XYChart.Data item from which the current extra value property object is obtained. itemThe current displayed extra value property. |
| protected final ObjectProperty | Returns: The current displayed X data value ObjectProperty.The XYChart.Data item from which the current X axis data value property object is obtained. itemThe current displayed data value property that is plotted on X axis. |
| protected final ObjectProperty | Returns: The current displayed Y data value ObjectProperty.The XYChart.Data item from which the current Y axis data value property object is obtained. itemThe current displayed data value property that is plotted on Y axis. |
| pack-priv void | dataBeingRemovedIsAdded(XYChart.
This method is called when there is an attempt to add a Data item that was set to be removed, and the removal might not have completed. |
| protected abstract void | dataItemAdded(XYChart.
The series the data item was added to series,The index of the new item within the series itemIndex, XYChart.The new data item that was added itemCalled when a data item has been added to a series. |
| protected abstract void | dataItemChanged(XYChart.
The data item who was changed itemCalled when a data item has changed, ie its xValue, yValue or extraValue has changed. |
| protected abstract void | dataItemRemoved(XYChart.
The item that has been removed from the series item,The series the item was removed from seriesCalled when a data item has been removed from data model but it is still visible on the chart. |
| private void | |
| public final ObjectProperty | |
| private <T> void | |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| protected final Object | Returns: The current extra valueThe XYChart.Data item from which the current extra value is obtained itemThe current displayed data extra value. |
| protected final X | Returns: The current displayed X data valueThe XYChart.Data item from which the current X axis data value is obtained itemThe current displayed data value plotted on the X axis. |
| protected final Y | Returns: The current displayed Y data valueThe XYChart.Data item from which the current Y axis data value is obtained itemThe current displayed data value plotted on the Y axis. |
| public final ObservableList | |
| pack-priv final int | Returns: The number of items in data, or null if data is nullGets the size of the data returning 0 if the data is null |
| protected final Iterator | Returns: iterator over currently displayed items from this seriesThe series to get displayed data for seriesXYChart maintains a list of all items currently displayed this includes all current data + any data items recently deleted that are in the process of being faded out. |
| protected final Iterator | Returns: iterator over currently displayed seriesXYChart maintains a list of all series currently displayed this includes all current series + any series that have recently been deleted that are in the process of being faded (animated) out. |
| protected ObservableList | Returns: Observable list of plot childrenModifiable and observable list of all content in the plot. |
| pack-priv int | Returns: index of the series in series listThe series to find index for seriesGet the index of the series in the series linked list. |
| pack-priv int | |
| public final boolean | Returns: true if verticalGridLines are visible else false.Indicates whether vertical grid lines are visible or not. |
| public Axis | Returns: the X axis of the chartGet the X axis, by default it is along the bottom of the plot |
| public Axis | Returns: the Y axis of this chartGet the Y axis, by default it is along the left of the plot |
| public final BooleanProperty | |
| public final BooleanProperty | |
| private void | invalidateRange()
This is called when a data change has happened that may cause the range to be invalid. |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| protected final void | layoutChartChildren(double top, double left, double width, double height)
Implements abstract javafx. Called to update and layout the chart children available from getChartChildren() |
| protected abstract void | |
| protected final void | removeDataItemFromDisplay(XYChart.
The series to remove series,The item to remove from series's display list itemThis should be called from dataItemRemoved() when you are finished with any animation for deleting the item from the chart. |
| protected final void | removeSeriesFromDisplay(XYChart.
The series to remove seriesThis should be called from seriesRemoved() when you are finished with any animation for deleting the series from the chart. |
| protected abstract void | seriesAdded(XYChart.
The series that has been added series,The index of the new series seriesIndex)A series has been added to the charts data model. |
| pack-priv void | seriesBeingRemovedIsAdded(XYChart.
This method is called when there is an attempt to add series that was set to be removed, and the removal might not have completed. |
| protected void | seriesChanged(ListChangeListener.
a Change instance representing the changes to the series cCalled when each atomic change is made to the list of series for this chart |
| private void | |
| protected abstract void | seriesRemoved(XYChart.
The series that has been removed seriesA series has been removed from the data model but it is still visible on the chart. |
| public final void | |
| public final void | |
| protected final void | setCurrentDisplayedExtraValue(XYChart.
The XYChart.Data item from which the current extra value is obtained. item,The extra value value)Set the current displayed data extra value. |
| protected final void | setCurrentDisplayedXValue(XYChart.
The XYChart.Data item from which the current X axis data value is obtained. item,The X axis data value value)Set the current displayed data value plotted on X axis. |
| protected final void | setCurrentDisplayedYValue(XYChart.
The XYChart.Data item from which the current Y axis data value is obtained. item,The Y axis data value value)Set the current displayed data value plotted on Y axis. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| protected void | |
| protected void | updateLegend()
This is called whenever a series is added or removed and the legend needs to be updated |
| pack-priv void | updateSymbolFocusable(boolean on)
Overrides javafx. Invoked in the FX application thread when accessibility active platform property changes. |
| public final BooleanProperty | |
| public final BooleanProperty | |
| private ObservableValue | |
| private ObservableValue |