public abstract class ChartBehavior extends PropertyManager
Constructor and Description |
---|
ChartBehavior() |
Modifier and Type | Method and Description |
---|---|
void |
attach(RadChartViewBase chart)
Used to attach the behaviour to e specified chart instance.
|
RadChartViewBase |
chart()
Gets the chart to which this behavior is attached.
|
void |
detach()
Used to detach the current chart instance.
|
boolean |
onDoubleTap(MotionEvent e)
Invoked when a double tap gesture occurs on the owner chart.
|
boolean |
onDown(MotionEvent e)
Invoked when the user touches the chart.
|
boolean |
onDrag(MotionEvent initialEvent,
MotionEvent currentEvent,
RadSize distance,
boolean isInHold)
Invoked when a drag gesture occurs on the owner chart.
|
boolean |
onHold(MotionEvent e)
Invoked when a hold gesture occurs on the owner chart.
|
boolean |
onPinch(ChartScaleGestureDetector detector,
MotionEvent pinchEvent)
Invoked when a pinch gesture occurs on the owner chart.
|
void |
onPinchComplete()
Called when the pinch gesture finishes.
|
boolean |
onTap(MotionEvent e)
Invoked when a tap gesture occurs on the owner chart.
|
boolean |
onUp(MotionEvent e)
Invoked when the user lifts a finger from the chart.
|
void |
reset()
Resets the behavior.
|
getValue, resetPropertyValue, setValue, setValue
public RadChartViewBase chart()
public boolean onHold(MotionEvent e)
e
- An object that contains gesture information.public boolean onDown(MotionEvent e)
e
- An object that contains gesture information.public boolean onUp(MotionEvent e)
e
- An object that contains gesture information.public boolean onTap(MotionEvent e)
e
- An object that contains gesture information.public boolean onDrag(MotionEvent initialEvent, MotionEvent currentEvent, RadSize distance, boolean isInHold)
initialEvent
- Information for the event that started the gesture.currentEvent
- Information for the event that caused the current drag gesturedistance
- The distance travelled since the previous gesture. This is NOT the distance between initialEvent and currentEvent.public boolean onDoubleTap(MotionEvent e)
e
- An object that contains gesture information.public boolean onPinch(ChartScaleGestureDetector detector, MotionEvent pinchEvent)
detector
- The scale detector that detected this gesture.pinchEvent
- The MotionEvent that represents this pinch gesture.public void onPinchComplete()
public void attach(RadChartViewBase chart)
chart
- the chart to be attached.public void detach()
public void reset()