public abstract class DefaultLegendItemBase extends LegendItemBase
TextView
with name
- CheckBox
for selection of series
- LegendPointMarker
which draws series iconModifier and Type | Field and Description |
---|---|
protected android.widget.CheckBox |
checkBox |
protected android.widget.TextView |
name |
protected LegendPointMarker |
pointMarker |
Modifier | Constructor and Description |
---|---|
protected |
DefaultLegendItemBase(android.view.View itemView)
Creates a new instance of the
LegendItemBase class |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
void |
bindSource(java.lang.Object source,
SciChartLegend legend)
Binds data provided by
source to this ILegendItem |
protected static int |
convertToVisibility(boolean isVisible)
Converts
isVisible flag to visibility |
getItemView
protected final android.widget.TextView name
protected final android.widget.CheckBox checkBox
protected final LegendPointMarker pointMarker
protected DefaultLegendItemBase(android.view.View itemView)
LegendItemBase
classitemView
- The View
associated with this legend itempublic void applyThemeProvider(IThemeProvider themeProvider)
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic void bindSource(java.lang.Object source, SciChartLegend legend)
source
to this ILegendItem
source
- Source to bind with.legend
- The parent SciChartLegend
.protected static int convertToVisibility(boolean isVisible)
isVisible
flag to visibilityisVisible
- The isVisible
flagView.VISIBLE
else View.GONE