public abstract class AbstractController extends Object implements Controller
null, every method
will invoke the default implementation of parent chart.| Constructor and Description |
|---|
AbstractController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElementAndReset(Context context,
AbstractChart<?,?> chart,
int index)
Create a single element for the data at the given index and reset its state.
|
void |
addElements(Context context,
AbstractChart<?,?> chart)
Create elements for each piece of data in the dataset.
|
void |
draw(Context context,
AbstractChart<?,?> chart,
double ease)
Draw the representation of the dataset.
|
void |
initialize(Context context,
AbstractChart<?,?> chart,
int datasetIndex)
Initializes the controller.
|
void |
removeHoverStyle(Context context,
AbstractChart<?,?> chart,
StyleElement element)
Remove hover styling from the given element.
|
void |
setHoverStyle(Context context,
AbstractChart<?,?> chart,
StyleElement element)
Add hover styling to the given element.
|
void |
update(Context context,
AbstractChart<?,?> chart,
boolean reset)
Update the elements in response to new data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic void initialize(Context context, AbstractChart<?,?> chart, int datasetIndex)
Controllerinitialize in interface Controllercontext - context of controllerchart - chart instancedatasetIndex - dataset indexpublic void addElements(Context context, AbstractChart<?,?> chart)
ControlleraddElements in interface Controllercontext - context of controllerchart - chart instancepublic void addElementAndReset(Context context, AbstractChart<?,?> chart, int index)
ControlleraddElementAndReset in interface Controllercontext - context of controllerchart - chart instanceindex - dataset indexpublic void draw(Context context, AbstractChart<?,?> chart, double ease)
Controllerdraw in interface Controllercontext - context of controllerchart - chart instanceease - if specified, this number represents how far to transition elements.public void removeHoverStyle(Context context, AbstractChart<?,?> chart, StyleElement element)
ControllerremoveHoverStyle in interface Controllercontext - context of controllerchart - chart instanceelement - element to be removed.public void setHoverStyle(Context context, AbstractChart<?,?> chart, StyleElement element)
ControllersetHoverStyle in interface Controllercontext - context of controllerchart - chart instanceelement - element to be set.public void update(Context context, AbstractChart<?,?> chart, boolean reset)
Controllerupdate in interface Controllercontext - context of controllerchart - chart instancereset - if true, put the elements into a reset state so they can animate to their final values