Class DefaultLegend
- java.lang.Object
- 
- org.pepstock.charba.client.defaults.globals.DefaultLegend
 
- 
- All Implemented Interfaces:
- IsDefaultEventHandler,- IsDefaultLegend,- IsDefaultPluginElement,- IsDefaultTextDirectionHandler
 
 public final class DefaultLegend extends Object implements IsDefaultLegend CHART.JS default values for LEGEND element.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementAligngetAlign()Returns the alignment of the element.Set<IsEvent>getEvents()Returns the browser events that the chart should listen to.IsDefaultLegendLabelsgetLabels()Returns the labels object defaults.intgetMaxHeight()Returns the maximum height of the legend, in pixels.intgetMaxWidth()Returns the maximum width of the legend, in pixels.PositiongetPosition()Returns the position of element.TextDirectiongetTextDirection()Returns the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas.IsDefaultLegendTitlegetTitle()Returns the title object defaults.booleanisDisplay()Returns if the element is shown.booleanisFullSize()Returnstrueif marks that this box should take the full width/height of the canvas (moving other boxes).booleanisReverse()Returns if the legend will show datasets in reverse order.booleanisRtl()Returnstruefor rendering the object from right to left.
 
- 
- 
- 
Method Detail- 
getLabelspublic IsDefaultLegendLabels getLabels() Description copied from interface:IsDefaultLegendReturns the labels object defaults.- Specified by:
- getLabelsin interface- IsDefaultLegend
- Returns:
- the labels object instance
 
 - 
getTitlepublic IsDefaultLegendTitle getTitle() Description copied from interface:IsDefaultLegendReturns the title object defaults.- Specified by:
- getTitlein interface- IsDefaultLegend
- Returns:
- the title object instance
 
 - 
getEventspublic Set<IsEvent> getEvents() Description copied from interface:IsDefaultEventHandlerReturns the browser events that the chart should listen to.- Specified by:
- getEventsin interface- IsDefaultEventHandler
- Returns:
- the browser events that the chart should listen to.
 
 - 
isDisplaypublic boolean isDisplay() Description copied from interface:IsDefaultPluginElementReturns if the element is shown.- Specified by:
- isDisplayin interface- IsDefaultPluginElement
- Returns:
- if the element is shown.
 
 - 
isFullSizepublic boolean isFullSize() Description copied from interface:IsDefaultLegendReturnstrueif marks that this box should take the full width/height of the canvas (moving other boxes).- Specified by:
- isFullSizein interface- IsDefaultLegend
- Returns:
- trueif marks that this box should take the full width/height of the canvas (moving other boxes)
 
 - 
isReversepublic boolean isReverse() Description copied from interface:IsDefaultLegendReturns if the legend will show datasets in reverse order.- Specified by:
- isReversein interface- IsDefaultLegend
- Returns:
- legend will show datasets in reverse order.
 
 - 
getPositionpublic Position getPosition() Description copied from interface:IsDefaultPluginElementReturns the position of element.- Specified by:
- getPositionin interface- IsDefaultPluginElement
- Returns:
- the position of element.
 
 - 
getAlignpublic ElementAlign getAlign() Description copied from interface:IsDefaultPluginElementReturns the alignment of the element.- Specified by:
- getAlignin interface- IsDefaultPluginElement
- Returns:
- alignment of the element.
 
 - 
isRtlpublic boolean isRtl() Description copied from interface:IsDefaultTextDirectionHandlerReturnstruefor rendering the object from right to left.- Specified by:
- isRtlin interface- IsDefaultTextDirectionHandler
- Returns:
- truefor rendering the object from right to left.
 
 - 
getTextDirectionpublic TextDirection getTextDirection() Description copied from interface:IsDefaultTextDirectionHandlerReturns the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas.- Specified by:
- getTextDirectionin interface- IsDefaultTextDirectionHandler
- Returns:
- the text direction that will force on the canvas for rendering the object, regardless of the CSS specified on the canvas
 
 - 
getMaxWidthpublic int getMaxWidth() Description copied from interface:IsDefaultLegendReturns the maximum width of the legend, in pixels.- Specified by:
- getMaxWidthin interface- IsDefaultLegend
- Returns:
- the maximum width of the legend, in pixels
 
 - 
getMaxHeightpublic int getMaxHeight() Description copied from interface:IsDefaultLegendReturns the maximum height of the legend, in pixels.- Specified by:
- getMaxHeightin interface- IsDefaultLegend
- Returns:
- the maximum height of the legend, in pixels
 
 
- 
 
-