public final class Bar extends AbstractElement<IsDefaultBar> implements IsDefaultBar
| Modifier and Type | Method and Description |
|---|---|
int |
getBorderRadius()
Returns the bar border radius (in pixels).
|
BorderSkipped |
getBorderSkipped()
Returns the edge to skip drawing the border for.
|
int |
getHoverBorderRadius()
Returns the bar border radius (in pixels) when hovered.
|
default PointStyle |
getPointStyle()
Returns the style of the point.
|
default Img |
getPointStyleAsImage()
Returns the style of the point as image.
If property is missing or not an image, returns null. |
org.pepstock.charba.client.options.PointStyleHandler |
getPointStyleHandler()
Returns a point style handler instance to use in the default methods of this interface.
|
boolean |
isEnableBorderRadius()
If
true, it only shows the borderRadius of a bar when the bar is at the end of the stack. |
default boolean |
isPointStyleAsImage()
Returns
true if the point style is set by an Img. |
void |
setBorderRadius(int borderRadius)
Sets the bar border radius (in pixels).
|
void |
setBorderSkipped(boolean borderskip)
Sets the edge to skip drawing the border for.
|
void |
setBorderSkipped(BorderSkipped position)
Sets the edge to skip drawing the border for.
|
void |
setEnableBorderRadius(boolean enableBorderRadius)
If
true, it only shows the borderRadius of a bar when the bar is at the end of the stack. |
void |
setHoverBorderRadius(int borderRadius)
Sets the bar border radius (in pixels) when hovered.
|
default void |
setPointStyle(Img pointStyle)
Sets the style of the point as image.
|
default void |
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
|
getBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getBorderWidth, getHoverBackgroundColor, getHoverBackgroundColorAsString, getHoverBorderColor, getHoverBorderColorAsString, getHoverBorderWidth, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderWidth, setHoverBackgroundColor, setHoverBackgroundColor, setHoverBorderColor, setHoverBorderColor, setHoverBorderWidthgetDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBackgroundColorAsString, getBorderColorAsString, getBorderWidth, getHoverBackgroundColorAsString, getHoverBorderColorAsString, getHoverBorderWidthpublic org.pepstock.charba.client.options.PointStyleHandler getPointStyleHandler()
public void setEnableBorderRadius(boolean enableBorderRadius)
true, it only shows the borderRadius of a bar when the bar is at the end of the stack.enableBorderRadius - if true, it only shows the borderRadius of a bar when the bar is at the end of the stackpublic boolean isEnableBorderRadius()
true, it only shows the borderRadius of a bar when the bar is at the end of the stack.isEnableBorderRadius in interface IsDefaultBartrue, it only shows the borderRadius of a bar when the bar is at the end of the stackpublic void setBorderSkipped(boolean borderskip)
borderskip - to set false as border skipped. If set true, is ignoredpublic void setBorderSkipped(BorderSkipped position)
position - the edge to skip drawing the border for.public BorderSkipped getBorderSkipped()
getBorderSkipped in interface IsDefaultBarpublic void setBorderRadius(int borderRadius)
borderRadius - the bar border radius (in pixels).public int getBorderRadius()
getBorderRadius in interface IsDefaultBarpublic void setHoverBorderRadius(int borderRadius)
borderRadius - the bar border radius (in pixels) when hovered.public int getHoverBorderRadius()
getHoverBorderRadius in interface IsDefaultBarpublic void setPointStyle(PointStyle pointStyle)
pointStyle - array of the style of the point.public PointStyle getPointStyle()
getPointStyle in interface IsDefaultPointStyleHandlernull if point style is set as imagepublic void setPointStyle(Img pointStyle)
pointStyle - image element of the style of the point as image.public boolean isPointStyleAsImage()
true if the point style is set by an Img.isPointStyleAsImage in interface IsDefaultPointStyleHandlertrue if the point style is set by an Imgpublic Img getPointStyleAsImage()
null.getPointStyleAsImage in interface IsDefaultPointStyleHandlernull.