public class ChartTrackballContentAdapter extends ChartTooltipContentAdapter
Modifier and Type | Class and Description |
---|---|
static interface |
ChartTrackballContentAdapter.ChartTrackBallContentProvider
An interface used to provide a custom content for the
ChartTrackBallBehavior for
a given DataPoint . |
Constructor and Description |
---|
ChartTrackballContentAdapter(Context context)
Creates a new instance of the
ChartTrackballContentAdapter class. |
Modifier and Type | Method and Description |
---|---|
ChartTrackballContentAdapter.ChartTrackBallContentProvider |
getCustomContentProvider()
Gets an implementation of the
ChartTrackballContentAdapter.ChartTrackBallContentProvider interface used to
retrieve a custom content for the trackball for a given DataPoint . |
View |
getView(Object[] targets)
Gets the view according to the provided set of targets.
|
void |
setCustomContentProvider(ChartTrackballContentAdapter.ChartTrackBallContentProvider provider)
Sets an implementation of the
ChartTrackballContentAdapter.ChartTrackBallContentProvider interface used to
retrieve a custom content for the trackball for a given DataPoint . |
getBackgroundColor, getCategoryTextColor, getCategoryTextSize, getCategoryToStringConverter, getIsApplyDefaultStyles, getTooltipContent, getValueTextColor, getValueTextSize, getValueToStringConverter, setApplyDefaultStyles, setBackgroundColor, setCategoryTextColor, setCategoryTextSize, setCategoryToStringConverter, setPadding, setPadding, setTooltipContent, setValueTextColor, setValueTextSize, setValueToStringConverter
public ChartTrackballContentAdapter(Context context)
ChartTrackballContentAdapter
class.context
- The app context.public ChartTrackballContentAdapter.ChartTrackBallContentProvider getCustomContentProvider()
ChartTrackballContentAdapter.ChartTrackBallContentProvider
interface used to
retrieve a custom content for the trackball for a given DataPoint
.ChartTrackballContentAdapter.ChartTrackBallContentProvider
implementation that is currently set.public void setCustomContentProvider(ChartTrackballContentAdapter.ChartTrackBallContentProvider provider)
ChartTrackballContentAdapter.ChartTrackBallContentProvider
interface used to
retrieve a custom content for the trackball for a given DataPoint
.provider
- the ChartTrackballContentAdapter.ChartTrackBallContentProvider
implementation to set.public View getView(Object[] targets)
TooltipContentAdapter
getView
in interface TooltipContentAdapter
getView
in class ChartTooltipContentAdapter
targets
- set of targets.