public final class DefaultChartLegend extends Object implements IsDefaultLegend
| Constructor and Description |
|---|
DefaultChartLegend(IsDefaultLegend legend)
Creates the object by legend option element instance.
|
| Modifier and Type | Method and Description |
|---|---|
ElementAlign |
getAlign()
Returns the alignment of the element.
|
Set<Event> |
getEvents()
Returns the browser events that the legend should listen to.
|
IsDefaultLegendLabels |
getLabels()
Returns the labels object defaults.
|
int |
getMaxHeight()
Returns the maximum height of the legend, in pixels.
|
int |
getMaxWidth()
Returns the maximum width of the legend, in pixels.
|
Position |
getPosition()
Returns the position of element.
|
TextDirection |
getTextDirection()
Returns the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas.
|
IsDefaultLegendTitle |
getTitle()
Returns the title object defaults.
|
boolean |
isDisplay()
Returns if the element is shown.
|
boolean |
isFullSize()
Returns
true if marks that this box should take the full width/height of the canvas (moving 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 DefaultChartLegend(IsDefaultLegend legend)
legend - legend option element instance.public IsDefaultLegendLabels getLabels()
IsDefaultLegendgetLabels in interface IsDefaultLegendpublic IsDefaultLegendTitle getTitle()
IsDefaultLegendgetTitle in interface IsDefaultLegendpublic Set<Event> getEvents()
IsDefaultLegendgetEvents in interface IsDefaultLegendpublic boolean isDisplay()
IsDefaultPluginElementisDisplay in interface IsDefaultPluginElementpublic boolean isFullSize()
IsDefaultLegendtrue if marks that this box should take the full width/height of the canvas (moving other boxes).isFullSize in interface IsDefaultLegendtrue if marks that this box should take the full width/height of the canvas (moving other boxes)public boolean isReverse()
IsDefaultLegendisReverse in interface IsDefaultLegendpublic Position getPosition()
IsDefaultPluginElementgetPosition in interface IsDefaultPluginElementpublic ElementAlign getAlign()
IsDefaultPluginElementgetAlign in interface IsDefaultPluginElementpublic boolean isRtl()
IsDefaultTextDirectionHandlertrue for rendering the object from right to left.isRtl in interface IsDefaultTextDirectionHandlertrue for rendering the object from right to left.public TextDirection getTextDirection()
IsDefaultTextDirectionHandlergetTextDirection in interface IsDefaultTextDirectionHandlerpublic int getMaxWidth()
IsDefaultLegendgetMaxWidth in interface IsDefaultLegendpublic int getMaxHeight()
IsDefaultLegendgetMaxHeight in interface IsDefaultLegend