public class PanController extends Plot2DController
axisRangesrenderContext| Constructor and Description |
|---|
PanController(RenderContext renderContext,
boolean vertical)
Initializes a new instance of the
PanController class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getEnableAnimation()
Gets whether to enable pan inertia.
|
ComponentAnimation |
getRunningAnimation()
For internal use.
|
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.
|
void |
setEnableAnimation(boolean value)
Sets whether to enable pan inertia.
|
getVertical, setVerticaldrawInteraction, getComponentpublic PanController(RenderContext renderContext, boolean vertical)
PanController 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 ComponentAnimation getRunningAnimation()
getRunningAnimation in interface ComponentControllergetRunningAnimation in class PlotControllerpublic boolean getEnableAnimation()
public void setEnableAnimation(boolean value)