public class ScrollHandlerFX extends AbstractMouseHandlerFX implements MouseHandlerFX
ChartCanvas.
THE API FOR THIS CLASS IS SUBJECT TO CHANGE IN FUTURE RELEASES. This is so that we can incorporate feedback on the (new) JavaFX support in JFreeChart.
| Constructor and Description |
|---|
ScrollHandlerFX(java.lang.String id)
Creates a new instance with the specified ID.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getZoomFactor()
Returns the zoom factor.
|
void |
handleScroll(ChartCanvas canvas,
javafx.scene.input.ScrollEvent e)
Handles a scroll event.
|
void |
setZoomFactor(double zoomFactor)
Sets the zoom factor (a percentage amount by which the mouse wheel
movement will change the chart size).
|
getID, handleMouseClicked, handleMouseDragged, handleMouseMoved, handleMousePressed, handleMouseReleased, hasMatchingModifiers, isEnabled, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetID, handleMouseClicked, handleMouseDragged, handleMouseMoved, handleMousePressed, handleMouseReleased, hasMatchingModifiers, isEnabledpublic ScrollHandlerFX(java.lang.String id)
id - the handler ID (null not permitted).public double getZoomFactor()
public void setZoomFactor(double zoomFactor)
zoomFactor - the zoom factor.public void handleScroll(ChartCanvas canvas, javafx.scene.input.ScrollEvent e)
AbstractMouseHandlerFXhandleScroll in interface MouseHandlerFXhandleScroll in class AbstractMouseHandlerFXcanvas - the canvas (null not permitted).e - the event (null not permitted).