Java Code Examples for org.jfree.chart.fx.ChartCanvas#isTooltipEnabled()
The following examples show how to use
org.jfree.chart.fx.ChartCanvas#isTooltipEnabled() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TooltipHandlerFX.java From openstock with GNU General Public License v3.0 | 5 votes |
/** * Handles a mouse moved event by updating the tooltip. * * @param canvas the chart canvas (<code>null</code> not permitted). * @param e the mouse event. */ @Override public void handleMouseMoved(ChartCanvas canvas, MouseEvent e) { if (!canvas.isTooltipEnabled()) { return; } String text = getTooltipText(canvas, e.getX(), e.getY()); canvas.setTooltip(text, e.getScreenX(), e.getScreenY()); }
Example 2
Source File: TooltipHandlerFX.java From jfreechart-fx with GNU Lesser General Public License v2.1 | 5 votes |
/** * Handles a mouse moved event by updating the tooltip. * * @param canvas the chart canvas ({@code null} not permitted). * @param e the mouse event. */ @Override public void handleMouseMoved(ChartCanvas canvas, MouseEvent e) { if (canvas.getChart() == null || !canvas.isTooltipEnabled()) { return; } String text = getTooltipText(canvas, e.getX(), e.getY()); canvas.setTooltip(text, e.getScreenX(), e.getScreenY()); }
Example 3
Source File: TooltipHandlerFX.java From ccu-historian with GNU General Public License v3.0 | 5 votes |
/** * Handles a mouse moved event by updating the tooltip. * * @param canvas the chart canvas (<code>null</code> not permitted). * @param e the mouse event. */ @Override public void handleMouseMoved(ChartCanvas canvas, MouseEvent e) { if (!canvas.isTooltipEnabled()) { return; } String text = getTooltipText(canvas, e.getX(), e.getY()); canvas.setTooltip(text, e.getScreenX(), e.getScreenY()); }
Example 4
Source File: TooltipHandlerFX.java From SIMVA-SoS with Apache License 2.0 | 5 votes |
/** * Handles a mouse moved event by updating the tooltip. * * @param canvas the chart canvas (<code>null</code> not permitted). * @param e the mouse event. */ @Override public void handleMouseMoved(ChartCanvas canvas, MouseEvent e) { if (!canvas.isTooltipEnabled()) { return; } String text = getTooltipText(canvas, e.getX(), e.getY()); canvas.setTooltip(text, e.getScreenX(), e.getScreenY()); }
Example 5
Source File: TooltipHandlerFX.java From ECG-Viewer with GNU General Public License v2.0 | 5 votes |
/** * Handles a mouse moved event by updating the tooltip. * * @param canvas the chart canvas (<code>null</code> not permitted). * @param e the mouse event. */ @Override public void handleMouseMoved(ChartCanvas canvas, MouseEvent e) { if (!canvas.isTooltipEnabled()) { return; } String text = getTooltipText(canvas, e.getX(), e.getY()); canvas.setTooltip(text, e.getScreenX(), e.getScreenY()); }
Example 6
Source File: TooltipHandlerFX.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
/** * Handles a mouse moved event by updating the tooltip. * * @param canvas the chart canvas (<code>null</code> not permitted). * @param e the mouse event. */ @Override public void handleMouseMoved(ChartCanvas canvas, MouseEvent e) { if (!canvas.isTooltipEnabled()) { return; } String text = getTooltipText(canvas, e.getX(), e.getY()); canvas.setTooltip(text, e.getScreenX(), e.getScreenY()); }
Example 7
Source File: TooltipHandlerFX.java From buffer_bci with GNU General Public License v3.0 | 5 votes |
/** * Handles a mouse moved event by updating the tooltip. * * @param canvas the chart canvas (<code>null</code> not permitted). * @param e the mouse event. */ @Override public void handleMouseMoved(ChartCanvas canvas, MouseEvent e) { if (!canvas.isTooltipEnabled()) { return; } String text = getTooltipText(canvas, e.getX(), e.getY()); canvas.setTooltip(text, e.getScreenX(), e.getScreenY()); }