public static final class

ChartLegendAdapter.GroupItemsAdapter

extends ChartLegendAdapter
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartLegendAdapter
     ↳ com.artfulbits.aiCharts.Base.ChartLegendAdapter.GroupItemsAdapter

Class Overview

Represents group items provider that combines items retrieved from multiple providers.

Summary

Public Constructors
ChartLegendAdapter.GroupItemsAdapter(ChartLegendAdapter... itemProviders)
Initializes a new instance of GroupItemsProvider.
Public Methods
List<ChartLegendItem> getLegendItems()
Gets items that considered to be drawn on legend.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ChartLegendAdapter.GroupItemsAdapter (ChartLegendAdapter... itemProviders)

Initializes a new instance of GroupItemsProvider.

Parameters
itemProviders - provider for generation legend elements.

Public Methods

public List<ChartLegendItem> getLegendItems ()

Gets items that considered to be drawn on legend. In order for legend to handle returned collection, each item must have its ChartLegendItem#setLegend(ChartLegend) legend property set. Internally, legend will determine proper size for each item so there no predictions could be made regarding legend's item final size.

Returns
  • instance of Collection filled with chart legend items.