public final class DefaultChartLegend extends Object implements IsDefaultLegend
Modifier and Type | Method and Description |
---|---|
LegendAlign |
getAlign()
Returns the alignment of the legend.
|
IsDefaultLegendLabels |
getLabels()
Returns the labels object defaults.
|
Position |
getPosition()
Returns the position of the legend.
|
TextDirection |
getTextDirection()
Returns the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the
canvas.
|
boolean |
isDisplay()
Returns
true if the legend is shown. |
boolean |
isFullWidth()
Returns
true if marks that this box should take the full width of the canvas (pushing down other boxes) |
boolean |
isReverse()
Returns if the legend will show datasets in reverse order.
|
boolean |
isRtl()
Returns
true for rendering the object from right to left. |
public IsDefaultLegendLabels getLabels()
IsDefaultLegend
getLabels
in interface IsDefaultLegend
public boolean isDisplay()
IsDefaultLegend
true
if the legend is shown.isDisplay
in interface IsDefaultLegend
true
if the legend is shown.public boolean isFullWidth()
IsDefaultLegend
true
if marks that this box should take the full width of the canvas (pushing down other boxes)isFullWidth
in interface IsDefaultLegend
true
if marks that this box should take the full width of the canvas (pushing down other boxes).public boolean isReverse()
IsDefaultLegend
isReverse
in interface IsDefaultLegend
public Position getPosition()
IsDefaultLegend
getPosition
in interface IsDefaultLegend
public LegendAlign getAlign()
IsDefaultLegend
getAlign
in interface IsDefaultLegend
public boolean isRtl()
IsDefaultTextDirectioner
true
for rendering the object from right to left.isRtl
in interface IsDefaultTextDirectioner
true
for rendering the object from right to left.public TextDirection getTextDirection()
IsDefaultTextDirectioner
getTextDirection
in interface IsDefaultTextDirectioner