public final class LegendLabelItem extends LegendItem implements HasLegendText
Modifier and Type | Class and Description |
---|---|
static class |
LegendLabelItem.LegendLabelItemFactory
Inner class to create legend label item by a native object.
|
LegendItem.LegendItemFactory
Modifier and Type | Field and Description |
---|---|
static LegendLabelItem.LegendLabelItemFactory |
FACTORY
Public factory to create a legend labels item from a native object.
|
Constructor and Description |
---|
LegendLabelItem()
Standard constructor which wraps a new native java script object.
|
Modifier and Type | Method and Description |
---|---|
LegendTextHandler |
getLegendTextHandler()
Returns a legend text handler instance to use in the default methods of this interface.
|
void |
setDatasetIndex(int datasetIndex)
Sets the data set index of the chart.
|
void |
setFillStyle(IsChart chart,
Gradient gradient)
Sets the fill style of the legend box as gradient.
|
void |
setFillStyle(IsChart chart,
Pattern pattern)
Sets the fill style of the legend box as pattern.
|
void |
setFillStyle(IsColor color)
Sets the fill style of the legend box as color.
|
void |
setFillStyle(String color)
Sets the fill style of the legend box as color.
|
void |
setFontColor(IsColor color)
Sets the font color of the legend.
|
void |
setFontColor(String color)
Returns the font color of the legend.
|
void |
setIndex(int index)
Sets the data set index of the chart (for POLAR and PIE charts).
|
void |
setLineCap(CapStyle style)
Sets how the end points of every box border are drawn.
|
void |
setLineDash(List<Integer> lineDash)
Sets 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.
|
void |
setLineDashOffset(double lineDashOffset)
Sets the box border dash pattern offset.
|
void |
setLineJoin(JoinStyle style)
Sets 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. |
void |
setLineWidth(int lineWidth)
Sets the width of box border in pixels.
|
void |
setPointStyle(Canvas pointStyle)
Sets the style (as canvas) of the legend box (only used if usePointStyle is true)
|
void |
setPointStyle(Img pointStyle)
Sets the style (as image) of the legend box (only used if usePointStyle is true)
|
void |
setPointStyle(PointStyle style)
Sets the style of the legend box (only used if usePointStyle is true)
|
void |
setRotation(double rotation)
Sets the rotation of the point in degrees (only used if usePointStyle is true).
|
void |
setStrokeStyle(CanvasGradientItem gradient)
Sets the stroke style of the legend box as canvas gradient.
|
void |
setStrokeStyle(CanvasPatternItem pattern)
Sets the stroke style of the legend box as canvas pattern.
|
void |
setStrokeStyle(IsChart chart,
Gradient gradient)
Sets the stroke style of the legend box as gradient.
|
void |
setStrokeStyle(IsChart chart,
Pattern pattern)
Sets the stroke style of the legend box as pattern.
|
void |
setStrokeStyle(IsColor color)
Sets the stroke style of the legend box as color.
|
void |
setStrokeStyle(String color)
Sets the stroke style of the legend box as color.
|
getBorderRadius, getDatasetIndex, getFillStyle, getFillStyleAsCanvasGradient, getFillStyleAsCanvasPattern, getFillStyleAsGradient, getFillStyleAsPattern, getFontColor, getIndex, getLineCap, getLineDash, getLineDashOffset, getLineJoin, getLineWidth, getPointStyle, getPointStyleAsCanvas, getPointStyleAsImage, getPointStyleType, getRotation, getStrokeStyle, getStrokeStyleAsCanvasGradient, getStrokeStyleAsCanvasPattern, getStrokeStyleAsGradient, getStrokeStyleAsPattern, getText, isFillStyleAsColor, isFillStyleAsGradient, isFillStyleAsPattern, isHidden, isStrokeStyleAsColor, isStrokeStyleAsGradient, isStrokeStyleAsPattern
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getText, getTextAsHtml, isHtmlText, setHtmlText, setText, setText
public static final LegendLabelItem.LegendLabelItemFactory FACTORY
public LegendLabelItem()
public LegendTextHandler getLegendTextHandler()
HasLegendText
getLegendTextHandler
in interface HasLegendText
public void setDatasetIndex(int datasetIndex)
datasetIndex
- the data set index of the chartpublic void setIndex(int index)
index
- the data set index of the chart (for POLAR and PIE charts)public void setFontColor(IsColor color)
color
- the font color of the legendpublic void setFontColor(String color)
color
- the font color of the legendpublic void setFillStyle(IsColor color)
color
- the fill style of the legend box as colorpublic void setFillStyle(String color)
color
- the fill style of the legend box as colorpublic void setFillStyle(IsChart chart, Pattern pattern)
chart
- chart instance related to this legendpattern
- the fill style of the legend box as patternpublic void setFillStyle(IsChart chart, Gradient gradient)
chart
- chart instance related to this legendgradient
- the fill style of the legend box as gradientpublic void setLineCap(CapStyle style)
style
- how the end points of every box border are drawn.public void setLineDash(List<Integer> lineDash)
lineDash
- 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.public void setLineDashOffset(double lineDashOffset)
lineDashOffset
- the box border dash pattern offset.public void setLineJoin(JoinStyle style)
style
- There are three possible values for this property: round, bevel and miter.public void setLineWidth(int lineWidth)
lineWidth
- the width of box border in pixels.public void setStrokeStyle(IsColor color)
color
- the stroke style of the legend box as colorpublic void setStrokeStyle(String color)
color
- the stroke style of the legend box as colorpublic void setStrokeStyle(CanvasPatternItem pattern)
pattern
- the stroke style of the legend box as canvas patternpublic void setStrokeStyle(IsChart chart, Pattern pattern)
chart
- chart instance related to this legendpattern
- the stroke style of the legend box as patternpublic void setStrokeStyle(CanvasGradientItem gradient)
gradient
- the stroke style of the legend box as canvas gradientpublic void setStrokeStyle(IsChart chart, Gradient gradient)
chart
- chart instance related to this legendgradient
- the stroke style of the legend box as gradientpublic void setPointStyle(PointStyle style)
style
- the style of the legend boxpublic void setPointStyle(Img pointStyle)
pointStyle
- the style (as image) of the legend boxpublic void setPointStyle(Canvas pointStyle)
pointStyle
- the style (as canvas) of the legend boxpublic void setRotation(double rotation)
rotation
- the rotation of the point in degrees