Interface IsDefaultBar
-
- All Superinterfaces:
IsDefaultOptionsElement,IsDefaultPointStyleHandler
- All Known Implementing Classes:
Bar,DefaultBar,DefaultChartBar
public interface IsDefaultBar extends IsDefaultOptionsElement, IsDefaultPointStyleHandler
Interface to define bar object defaults.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetBase()Returns the base value for the bar in data units along the value axis.
If not set, defaults to the value axis base value.intgetBorderRadius()Returns the bar border radius (in pixels).BorderSkippedgetBorderSkipped()Returns the edge to skip drawing the border for.intgetHoverBorderRadius()Returns the bar border radius (in pixels) when hovered.intgetInflateAmount()Returns the amount of pixels to inflate the bar rectangles, when drawing.booleanisAutoInflateAmount()Returnstrueif the amount of pixels to inflate the bar rectangles, when drawing, is automatically calculated.booleanisEnableBorderRadius()Iftrue, it only shows the borderRadius of a bar when the bar is at the end of the stack.-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultOptionsElement
getBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidth
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultPointStyleHandler
getPointStyle, getPointStyleAsCanvas, getPointStyleAsImage, getPointStyleType
-
-
-
-
Method Detail
-
getBorderSkipped
BorderSkipped getBorderSkipped()
Returns the edge to skip drawing the border for.- Returns:
- the edge to skip drawing the border for.
-
getBorderRadius
int getBorderRadius()
Returns the bar border radius (in pixels).- Returns:
- the bar border radius (in pixels).
-
getHoverBorderRadius
int getHoverBorderRadius()
Returns the bar border radius (in pixels) when hovered.- Returns:
- the bar border radius (in pixels) when hovered.
-
isEnableBorderRadius
boolean isEnableBorderRadius()
Iftrue, it only shows the borderRadius of a bar when the bar is at the end of the stack.- Returns:
- if
true, it only shows the borderRadius of a bar when the bar is at the end of the stack
-
isAutoInflateAmount
boolean isAutoInflateAmount()
Returnstrueif the amount of pixels to inflate the bar rectangles, when drawing, is automatically calculated.- Returns:
trueif the amount of pixels to inflate the bar rectangles, when drawing, is automatically calculated
-
getInflateAmount
int getInflateAmount()
Returns the amount of pixels to inflate the bar rectangles, when drawing.- Returns:
- the amount of pixels to inflate the bar rectangles, when drawing
-
getBase
double getBase()
Returns the base value for the bar in data units along the value axis.
If not set, defaults to the value axis base value.- Returns:
- base value for the bar in data units along the value axis.
If not set, defaults to the value axis base value
-
-