public class PanController extends Plot2DController
axisRanges
renderContext
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.
|
com.mindfusion.charting.components.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, setVertical
drawInteraction, getComponent
public 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 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 com.mindfusion.charting.components.ComponentAnimation getRunningAnimation()
getRunningAnimation
in interface com.mindfusion.charting.components.ComponentController
getRunningAnimation
in class PlotController
public boolean getEnableAnimation()
public void setEnableAnimation(boolean value)