public class MouseWheelHandler
extends java.lang.Object
implements java.awt.event.MouseWheelListener, java.io.Serializable
ChartPanel
class.Modifier and Type | Field and Description |
---|---|
(package private) double |
zoomFactor
The zoom factor.
|
Constructor and Description |
---|
MouseWheelHandler(ChartPanel chartPanel)
Creates a new instance for the specified chart panel.
|
Modifier and Type | Method and Description |
---|---|
double |
getZoomFactor()
Returns the current zoom factor.
|
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Handles a mouse wheel event from the underlying chart panel.
|
void |
setZoomFactor(double zoomFactor)
Sets the zoom factor.
|
public MouseWheelHandler(ChartPanel chartPanel)
chartPanel
- the chart panel (null
not permitted).public double getZoomFactor()
setZoomFactor(double)
public void setZoomFactor(double zoomFactor)
zoomFactor
- the zoom factor.getZoomFactor()
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
e
- the event.