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()
IsDefaultLegend
getLabels
in interface IsDefaultLegend
public IsDefaultLegendTitle getTitle()
IsDefaultLegend
getTitle
in interface IsDefaultLegend
public Set<Event> getEvents()
IsDefaultLegend
getEvents
in interface IsDefaultLegend
public boolean isDisplay()
IsDefaultPluginElement
isDisplay
in interface IsDefaultPluginElement
public boolean isFullSize()
IsDefaultLegend
true
if marks that this box should take the full width/height of the canvas (moving other boxes).isFullSize
in interface IsDefaultLegend
true
if marks that this box should take the full width/height of the canvas (moving other boxes)public boolean isReverse()
IsDefaultLegend
isReverse
in interface IsDefaultLegend
public Position getPosition()
IsDefaultPluginElement
getPosition
in interface IsDefaultPluginElement
public ElementAlign getAlign()
IsDefaultPluginElement
getAlign
in interface IsDefaultPluginElement
public boolean isRtl()
IsDefaultTextDirectionHandler
true
for rendering the object from right to left.isRtl
in interface IsDefaultTextDirectionHandler
true
for rendering the object from right to left.public TextDirection getTextDirection()
IsDefaultTextDirectionHandler
getTextDirection
in interface IsDefaultTextDirectionHandler
public int getMaxWidth()
IsDefaultLegend
getMaxWidth
in interface IsDefaultLegend
public int getMaxHeight()
IsDefaultLegend
getMaxHeight
in interface IsDefaultLegend