java.lang.Object | |
↳ | com.artfulbits.aiCharts.Base.ChartLegendItem |
Represents item that is hold by the legend
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ChartLegendItem.Cell | Represents cell of the legend. | ||||||||||
ChartLegendItem.DrawableCell | Represents the drawable cell. | ||||||||||
ChartLegendItem.TextCell | Represents text cell class. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sole constructor.
| |||||||||||
Initialize new instance of
ChartLegendItem with specified cells. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the specified cell to the legend item.
| |||||||||||
Adds empty cell.
| |||||||||||
Adds the specified cell to the legend item.
| |||||||||||
Adds the specified cell to the legend item.
| |||||||||||
Clears all cells in this item.
| |||||||||||
Gets cells of this legend item.
| |||||||||||
Gets associated tag.
| |||||||||||
Sets drawable that will be rendered in specified legend item's cell.
| |||||||||||
Sets text that will be rendered in specified legend item's cell.
| |||||||||||
Sets associated tag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sole constructor. (For invocation by subclass constructors, typically implicit.)
Initialize new instance of ChartLegendItem
with specified cells.
cells | objects array representing legend item cells. Each cell is
expected to be either Drawable or text. If cell is not instance of
Drawable , toString() representation of cell will be used. |
---|
Adds the specified cell to the legend item.
drawable | visual representation of cell. |
---|
Adds the specified cell to the legend item.
cell | ChartLegendItem.Cell instance. |
---|
Adds the specified cell to the legend item.
text | text representation of cell. |
---|
Gets cells of this legend item.
Gets associated tag.
Sets drawable that will be rendered in specified legend item's cell.
index | cell index. |
---|---|
drawable | instance of Drawable that will be used to draw the
cell. |
Sets text that will be rendered in specified legend item's cell.
index | cell index. |
---|---|
text | desired text. |
Sets associated tag.
tag | the Object associated with this item. |
---|