Interface IsDefaultLegend
-
- All Superinterfaces:
IsDefaultPluginElement
,IsDefaultTextDirectionHandler
- All Known Implementing Classes:
DefaultChartLegend
,DefaultLegend
,Legend
public interface IsDefaultLegend extends IsDefaultTextDirectionHandler, IsDefaultPluginElement
Interface to define legends object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.IsDefaultLegendTitle
getTitle()
Returns the title object defaults.boolean
isFullSize()
Returnstrue
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.-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultPluginElement
getAlign, getPosition, isDisplay
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultTextDirectionHandler
getTextDirection, isRtl
-
-
-
-
Method Detail
-
getLabels
IsDefaultLegendLabels getLabels()
Returns the labels object defaults.- Returns:
- the labels object instance
-
getTitle
IsDefaultLegendTitle getTitle()
Returns the title object defaults.- Returns:
- the title object instance
-
getEvents
Set<Event> getEvents()
Returns the browser events that the legend should listen to.- Returns:
- the browser events that the legend should listen to.
-
isFullSize
boolean isFullSize()
Returnstrue
if marks that this box should take the full width/height of the canvas (moving other boxes).- Returns:
true
if marks that this box should take the full width/height of the canvas (moving other boxes)
-
isReverse
boolean isReverse()
Returns if the legend will show datasets in reverse order.- Returns:
- legend will show datasets in reverse order.
-
getMaxWidth
int getMaxWidth()
Returns the maximum width of the legend, in pixels.- Returns:
- the maximum width of the legend, in pixels
-
getMaxHeight
int getMaxHeight()
Returns the maximum height of the legend, in pixels.- Returns:
- the maximum height of the legend, in pixels
-
-