public class ScrollHandlerFX extends AbstractMouseHandlerFX implements MouseHandlerFX
ChartCanvas.| Constructor and Description |
|---|
ScrollHandlerFX(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(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).Copyright © 2017 JFree.org. All rights reserved.