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, setEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, handleMouseClicked, handleMouseDragged, handleMouseMoved, handleMousePressed, handleMouseReleased, hasMatchingModifiers, isEnabled
public 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)
AbstractMouseHandlerFX
handleScroll
in interface MouseHandlerFX
handleScroll
in class AbstractMouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).