Class HtmlLegendItem
- java.lang.Object
-
- org.pepstock.charba.client.impl.plugins.HtmlLegendItem
-
public final class HtmlLegendItem extends Object
Object used to invokeTilesFactory
in order to get thePointStyle
representation for legend.
This object is used internally even if is public, used only byHtmlLegend
plugin.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsChart
getChart()
Returns the chart instanceLegendLabelItem
getLegendItem()
Returns the legend item instance, needed to create the point style for legend.double
getRadius()
Sets the radius of the tile for point style legend.int
getSize()
Returns the size of the tile for point style legend.String
toUniqueKey()
Returns the string JSON representation of the object as unique key ornull
if legend item is not consistent.
-
-
-
Method Detail
-
getChart
public IsChart getChart()
Returns the chart instance- Returns:
- the chart instance
-
getLegendItem
public LegendLabelItem getLegendItem()
Returns the legend item instance, needed to create the point style for legend.- Returns:
- the legend item instance
-
getSize
public int getSize()
Returns the size of the tile for point style legend.- Returns:
- the size of the tile for point style legend
-
getRadius
public double getRadius()
Sets the radius of the tile for point style legend.- Returns:
- the radius of the tile for point style legend
-
toUniqueKey
public final String toUniqueKey()
Returns the string JSON representation of the object as unique key ornull
if legend item is not consistent.- Returns:
- the string JSON representation of the object as unique key or
null
if legend item is not consistent
-
-