public class ZoomController extends Plot2DController
axisRanges
renderContext
Constructor and Description |
---|
ZoomController(RenderContext renderContext,
boolean vertical)
Initializes a new instance of the
ZoomController class. |
Modifier and Type | Method and Description |
---|---|
void |
drawInteraction(java.awt.Graphics graphics)
PlotController.drawInteraction override.
|
void |
onMouseDown(double x,
double y)
Plot2DController.onMouseDown override.
|
void |
onMouseMove(double x,
double y)
PlotController.onMouseMove override.
|
void |
onMouseUp(double x,
double y)
PlotController.onMouseUp override.
|
getVertical, setVertical
getComponent, getRunningAnimation
public ZoomController(RenderContext renderContext, boolean vertical)
ZoomController
class.renderContext
- A RenderContext
instance.vertical
- true to implement interaction along the Y axis, or false for the X axis.public void onMouseDown(double x, double y)
onMouseDown
in interface com.mindfusion.charting.components.ComponentController
onMouseDown
in class Plot2DController
x
- A double value specifying the horizontal position of mouse pointer.y
- A double value specifying the vertical position of mouse pointer.public void onMouseMove(double x, double y)
onMouseMove
in interface com.mindfusion.charting.components.ComponentController
onMouseMove
in class PlotController
x
- A double value specifying the horizontal position of mouse pointer.y
- A double value specifying the vertical position of mouse pointer.public void onMouseUp(double x, double y)
onMouseUp
in interface com.mindfusion.charting.components.ComponentController
onMouseUp
in class PlotController
x
- A double value specifying the horizontal position of mouse pointer.y
- A double value specifying the vertical position of mouse pointer.public void drawInteraction(java.awt.Graphics graphics)
drawInteraction
in interface com.mindfusion.charting.components.ComponentController
drawInteraction
in class PlotController
graphics
- An IGraphics instance.