public class Bar extends Object
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the background color.
|
String |
getBackgroundColorAsString()
Returns the background color.
|
ColorCallback<DatasetContext> |
getBackgroundColorCallback()
Returns the background color callback, if set, otherwise
null . |
IsColor |
getBorderColor()
Returns the border color.
|
String |
getBorderColorAsString()
Returns the border color.
|
ColorCallback<DatasetContext> |
getBorderColorCallback()
Returns the border color callback, if set, otherwise
null . |
int |
getBorderRadius()
Returns the bar border radius (in pixels).
|
BorderRadiusCallback |
getBorderRadiusCallback()
Returns the border radius callback, if set, otherwise
null . |
BorderSkipped |
getBorderSkipped()
Returns the edge to skip drawing the border for.
|
BorderSkippedCallback |
getBorderSkippedCallback()
Returns the border skipped callback, if set, otherwise
null . |
int |
getBorderWidth()
Returns the border width.
|
WidthCallback<DatasetContext> |
getBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected IsDefaultBar |
getDefaultElement()
Returns the element instance to be managed.
|
protected AbstractElement<IsDefaultBar> |
getElement()
Returns the element instance to be managed.
|
EnableBorderRadiusCallback |
getEnableBorderRadiusCallback()
Returns the enable border radius callback, if set, otherwise
null . |
IsColor |
getHoverBackgroundColor()
Returns the background color when hovered.
|
String |
getHoverBackgroundColorAsString()
Returns the background color when hovered.
|
ColorCallback<DatasetContext> |
getHoverBackgroundColorCallback()
Returns the background color callback, if set, otherwise
null . |
IsColor |
getHoverBorderColor()
Returns the border color when hovered.
|
String |
getHoverBorderColorAsString()
Returns the border color when hovered.
|
ColorCallback<DatasetContext> |
getHoverBorderColorCallback()
Returns the border color callback, if set, otherwise
null . |
int |
getHoverBorderRadius()
Returns the bar border radius (in pixels) when hovered.
|
BorderRadiusCallback |
getHoverBorderRadiusCallback()
Returns the border radius callback, when hovered, if set, otherwise
null . |
int |
getHoverBorderWidth()
Returns the border width when hovered.
|
WidthCallback<DatasetContext> |
getHoverBorderWidthCallback()
Returns the border width callback, if set, otherwise
null . |
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
PointStyle |
getPointStyle()
Returns the style of the point.
|
Canvas |
getPointStyleAsCanvas()
Returns the style of the point as canvas.
|
Img |
getPointStyleAsImage()
Returns the style of the point as image.
|
PointStyleCallback |
getPointStyleCallback()
Returns the point style callback, if set, otherwise
null . |
PointStyleType |
getPointStyleType()
Returns the type of point style.
|
boolean |
isEnableBorderRadius()
If
true , it only shows the borderRadius of a bar when the bar is at the end of the stack. |
void |
setBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback)
Sets the background color callback.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color.
|
void |
setBackgroundColor(NativeCallback backgroundColorCallback)
Sets the background color callback.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color.
|
void |
setBorderColor(ColorCallback<DatasetContext> borderColorCallback)
Sets the border color callback.
|
void |
setBorderColor(IsColor borderColor)
Sets the border color.
|
void |
setBorderColor(NativeCallback borderColorCallback)
Sets the border color callback.
|
void |
setBorderColor(String borderColor)
Sets the border color.
|
void |
setBorderRadius(BorderRadiusCallback borderRadiusCallback)
Sets the border radius callback.
|
void |
setBorderRadius(int borderRadius)
Sets the bar border radius (in pixels).
|
void |
setBorderRadius(NativeCallback borderRadiusCallback)
Sets the border radius callback.
|
void |
setBorderSkipped(boolean borderSkipped)
Sets the edge to skip drawing the border for.
|
void |
setBorderSkipped(BorderSkipped borderSkipped)
Sets the edge to skip drawing the border for.
|
void |
setBorderSkipped(BorderSkippedCallback borderSkippedCallback)
Sets the border skipped callback.
|
void |
setBorderSkipped(NativeCallback borderSkippedCallback)
Sets the border skipped callback.
|
void |
setBorderWidth(int borderWidth)
Sets the border width.
|
void |
setBorderWidth(NativeCallback borderWidthCallback)
Sets the border width callback.
|
void |
setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
Sets the border width callback.
|
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 |
setEnableBorderRadius(EnableBorderRadiusCallback enableBorderRadiusCallback)
Sets the enable border radius callback.
|
void |
setEnableBorderRadius(NativeCallback enableBorderRadiusCallback)
Sets the enable border radius callback.
|
void |
setHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback)
Sets the background color callback, as hovered.
|
void |
setHoverBackgroundColor(IsColor backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback)
Sets the background color callback, as hovered.
|
void |
setHoverBackgroundColor(String backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback)
Sets the border color callback, as hovered.
|
void |
setHoverBorderColor(IsColor borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderColor(NativeCallback hoverBorderColorCallback)
Sets the border color callback, as hovered.
|
void |
setHoverBorderColor(String borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderRadius(BorderRadiusCallback hoverBorderRadiusCallback)
Sets the border radius callback, when hovered.
|
void |
setHoverBorderRadius(int borderRadius)
Sets the bar border radius (in pixels) when hovered.
|
void |
setHoverBorderRadius(NativeCallback hoverBorderRadiusCallback)
Sets the border radius callback, when hovered.
|
void |
setHoverBorderWidth(int borderWidth)
Sets the border width when hovered.
|
void |
setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
Sets the border width callback, as hovered.
|
void |
setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
Sets the border width callback, as hovered.
|
void |
setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.
|
void |
setPointStyle(Img pointStyle)
Sets the style of the point as image.
|
void |
setPointStyle(NativeCallback pointStyleCallback)
Sets the point style callback.
|
void |
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
|
void |
setPointStyle(PointStyleCallback pointStyleCallback)
Sets the point style callback.
|
protected AbstractElement<IsDefaultBar> getElement()
protected IsDefaultBar getDefaultElement()
public void setBorderSkipped(boolean borderSkipped)
borderSkipped
- to set false
as border skipped. If set true
, is ignoredpublic void setBorderSkipped(BorderSkipped borderSkipped)
borderSkipped
- the edge to skip drawing the border for.public BorderSkipped getBorderSkipped()
public void setBorderRadius(int borderRadius)
borderRadius
- the bar border radius (in pixels).public int getBorderRadius()
public void setHoverBorderRadius(int borderRadius)
borderRadius
- the bar border radius (in pixels) when hovered.public int getHoverBorderRadius()
public void setPointStyle(PointStyle pointStyle)
pointStyle
- the style of the point.public void setPointStyle(Img pointStyle)
pointStyle
- the style of the point.public void setPointStyle(Canvas pointStyle)
pointStyle
- the style of the point.public PointStyleType getPointStyleType()
public PointStyle getPointStyle()
public Img getPointStyleAsImage()
public Canvas getPointStyleAsCanvas()
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.true
, it only shows the borderRadius of a bar when the bar is at the end of the stackpublic BorderRadiusCallback getBorderRadiusCallback()
null
.null
.public void setBorderRadius(BorderRadiusCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callback.public void setBorderRadius(NativeCallback borderRadiusCallback)
borderRadiusCallback
- the border radius callback.public BorderRadiusCallback getHoverBorderRadiusCallback()
null
.null
.public void setHoverBorderRadius(BorderRadiusCallback hoverBorderRadiusCallback)
hoverBorderRadiusCallback
- the border radius callback, when hovered.public void setHoverBorderRadius(NativeCallback hoverBorderRadiusCallback)
hoverBorderRadiusCallback
- the border radius callback, when hovered.public BorderSkippedCallback getBorderSkippedCallback()
null
.null
.public void setBorderSkipped(BorderSkippedCallback borderSkippedCallback)
borderSkippedCallback
- the border skipped callback.public void setBorderSkipped(NativeCallback borderSkippedCallback)
borderSkippedCallback
- the border skipped callback.public EnableBorderRadiusCallback getEnableBorderRadiusCallback()
null
.null
.public void setEnableBorderRadius(EnableBorderRadiusCallback enableBorderRadiusCallback)
enableBorderRadiusCallback
- the enable border radius callback.public void setEnableBorderRadius(NativeCallback enableBorderRadiusCallback)
enableBorderRadiusCallback
- the enable border radius callback.public PointStyleCallback getPointStyleCallback()
null
.null
.public void setPointStyle(PointStyleCallback pointStyleCallback)
pointStyleCallback
- the point style callback.public void setPointStyle(NativeCallback pointStyleCallback)
pointStyleCallback
- the point style callback.public void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color.public void setBackgroundColor(String backgroundColor)
backgroundColor
- the background color.public String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public void setBorderWidth(int borderWidth)
borderWidth
- the border width.public int getBorderWidth()
public void setBorderColor(IsColor borderColor)
borderColor
- the border color.public void setBorderColor(String borderColor)
borderColor
- the border color.public String getBorderColorAsString()
public IsColor getBorderColor()
public void setHoverBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color when hovered.public void setHoverBackgroundColor(String backgroundColor)
backgroundColor
- the background color when hovered.public String getHoverBackgroundColorAsString()
public IsColor getHoverBackgroundColor()
public void setHoverBorderWidth(int borderWidth)
borderWidth
- the border width when hovered.public int getHoverBorderWidth()
public void setHoverBorderColor(IsColor borderColor)
borderColor
- the border color when hovered.public void setHoverBorderColor(String borderColor)
borderColor
- the border color when hovered.public String getHoverBorderColorAsString()
public IsColor getHoverBorderColor()
public ColorCallback<DatasetContext> getBackgroundColorCallback()
null
.null
.public void setBackgroundColor(ColorCallback<DatasetContext> backgroundColorCallback)
backgroundColorCallback
- the background color callback.public void setBackgroundColor(NativeCallback backgroundColorCallback)
backgroundColorCallback
- the background color callback.public ColorCallback<DatasetContext> getBorderColorCallback()
null
.null
.public void setBorderColor(ColorCallback<DatasetContext> borderColorCallback)
borderColorCallback
- the border color callback.public void setBorderColor(NativeCallback borderColorCallback)
borderColorCallback
- the border color callback.public WidthCallback<DatasetContext> getBorderWidthCallback()
null
.null
.public void setBorderWidth(WidthCallback<DatasetContext> borderWidthCallback)
borderWidthCallback
- the border width callback.public void setBorderWidth(NativeCallback borderWidthCallback)
borderWidthCallback
- the border width callback.public ColorCallback<DatasetContext> getHoverBackgroundColorCallback()
null
.null
.public void setHoverBackgroundColor(ColorCallback<DatasetContext> hoverBackgroundColorCallback)
hoverBackgroundColorCallback
- the background color callback, as hoveredpublic void setHoverBackgroundColor(NativeCallback hoverBackgroundColorCallback)
hoverBackgroundColorCallback
- the background color callback, as hoveredpublic ColorCallback<DatasetContext> getHoverBorderColorCallback()
null
.null
.public void setHoverBorderColor(ColorCallback<DatasetContext> hoverBorderColorCallback)
hoverBorderColorCallback
- the border color callback, as hoveredpublic void setHoverBorderColor(NativeCallback hoverBorderColorCallback)
hoverBorderColorCallback
- the border color callback, as hoveredpublic WidthCallback<DatasetContext> getHoverBorderWidthCallback()
null
.null
.public void setHoverBorderWidth(WidthCallback<DatasetContext> hoverBorderWidthCallback)
hoverBorderWidthCallback
- the border width callback, as hoveredpublic void setHoverBorderWidth(NativeCallback hoverBorderWidthCallback)
hoverBorderWidthCallback
- the border width callback, as hoveredprotected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()