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(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,
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, handleMouseClicked, handleMouseDragged, handleMouseMoved, handleMousePressed, handleMouseReleased, hasMatchingModifiers, isEnabled
public 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, ScrollEvent e)
AbstractMouseHandlerFX
handleScroll
in interface MouseHandlerFX
handleScroll
in class AbstractMouseHandlerFX
canvas
- the canvas (null
not permitted).e
- the event (null
not permitted).Jas4pp 1.5 © Java Analysis Studio for Particle Physics