public abstract class DefaultLegendItemFactoryBase extends java.lang.Object implements ILegendItemsFactory
Constructor and Description |
---|
DefaultLegendItemFactoryBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract LegendItemBase |
createLegendItem(android.view.View legendItemView)
Creates
LegendItemBase for legendItemView |
ILegendItem |
createLegendItem(android.view.ViewGroup parent)
Called when
SciChartLegend needs a new ILegendItem of the given type to represent an item. |
protected android.view.View |
createLegendItemView(android.view.ViewGroup parent)
Creates a
View instance for legend item |
public final ILegendItem createLegendItem(android.view.ViewGroup parent)
SciChartLegend
needs a new ILegendItem
of the given type to represent an item.createLegendItem
in interface ILegendItemsFactory
parent
- The ViewGroup into which the new View will be added after it is bound to an adapter position.protected abstract LegendItemBase createLegendItem(android.view.View legendItemView)
LegendItemBase
for legendItemView
legendItemView
- The legendItemView
to create LegendItemBase
forLegendItemsAdapter
protected android.view.View createLegendItemView(android.view.ViewGroup parent)
View
instance for legend itemparent
- The ViewGroup into which the new View will be added after it is bound to an adapter position.View
for legend item