public class DefaultLegendItemsFactory extends java.lang.Object implements ILegendItemsFactory
ILegendItemsFactory
implementation which is used by LegendItemsAdapter
Constructor and Description |
---|
DefaultLegendItemsFactory() |
Modifier and Type | Method and Description |
---|---|
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 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