public class LegendItem extends NativeObjectContainer
Constructor and Description |
---|
LegendItem(NativeObject nativeObject)
Creates the item using a native java script object which contains all properties.
|
Modifier and Type | Method and Description |
---|---|
int |
getDatasetIndex()
Returns the dataset index of the chart
|
IsColor |
getFillStyle()
Returns the fill style of the legend box
|
int |
getIndex()
Returns the dataset index of the chart (for POLAR and PIE charts)
|
CapStyle |
getLineCap()
Returns how the end points of every box border are drawn.
|
List<Integer> |
getLineDash()
Returns the box border dash pattern used when stroking lines, using an array of values which specify alternating lengths
of lines and gaps which describe the pattern.
|
int |
getLineDashOffset()
Returns the box border dash pattern offset or "phase".
|
JoinStyle |
getLineJoin()
Returns how two connecting segments (of box border) with non-zero lengths in a shape are joined together (degenerate
segments with zero lengths, whose specified end points and control points are exactly at the same position, are
skipped).
There are three possible values for this property: round, bevel and miter. |
double |
getRotation()
Returns the rotation of the point in degrees (only used if usePointStyle is true).
|
String |
getText()
Returns the label that will be displayed
|
boolean |
isHidden()
Returns true if this item represents a hidden dataset.
|
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public LegendItem(NativeObject nativeObject)
nativeObject
- native java script object which contains all properties.public final int getDatasetIndex()
UndefinedValues.INTEGER
.public final int getIndex()
UndefinedValues.INTEGER
.public final String getText()
UndefinedValues.STRING
.public final IsColor getFillStyle()
public final boolean isHidden()
true
if this item represents a hidden dataset. Label will be rendered with a strike-through
effect.UndefinedValues.BOOLEAN
.public final CapStyle getLineCap()
public final List<Integer> getLineDash()
public final int getLineDashOffset()
public final JoinStyle getLineJoin()
public final double getRotation()