public class ZoomController extends Plot2DController
axisRangesrenderContext| 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, setVerticalgetComponent, getRunningAnimationpublic 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 ComponentControlleronMouseDown in class Plot2DControllerx - 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 ComponentControlleronMouseMove in class PlotControllerx - 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 ComponentControlleronMouseUp in class PlotControllerx - 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 ComponentControllerdrawInteraction in class PlotControllergraphics - An IGraphics instance.