Class HtmlLegendItem
- java.lang.Object
-
- org.pepstock.charba.client.impl.plugins.HtmlLegendItem
-
public final class HtmlLegendItem extends Object
Object used to invokeTilesFactoryin order to get thePointStylerepresentation for legend.
This object is used internally even if is public, used only byHtmlLegendplugin.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IsChartgetChart()Returns the chart instanceLegendLabelItemgetLegendItem()Returns the legend item instance, needed to create the point style for legend.doublegetRadius()Sets the radius of the tile for point style legend.intgetSize()Returns the size of the tile for point style legend.StringtoUniqueKey()Returns the string JSON representation of the object as unique key ornullif 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 ornullif legend item is not consistent.- Returns:
- the string JSON representation of the object as unique key or
nullif legend item is not consistent
-
-