public class Bar extends Object
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the background color.
|
String |
getBackgroundColorAsString()
Returns the background color.
|
IsColor |
getBorderColor()
Returns the border color.
|
String |
getBorderColorAsString()
Returns the border color.
|
int |
getBorderRadius()
Returns the bar border radius (in pixels).
|
BorderSkipped |
getBorderSkipped()
Returns the edge to skip drawing the border for.
|
int |
getBorderWidth()
Returns the border width.
|
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected AbstractElement<IsDefaultBar> |
getElement()
Returns the element instance to be managed.
|
IsColor |
getHoverBackgroundColor()
Returns the background color when hovered.
|
String |
getHoverBackgroundColorAsString()
Returns the background color when hovered.
|
IsColor |
getHoverBorderColor()
Returns the border color when hovered.
|
String |
getHoverBorderColorAsString()
Returns the border color when hovered.
|
int |
getHoverBorderRadius()
Returns the bar border radius (in pixels) when hovered.
|
int |
getHoverBorderWidth()
Returns the border width when hovered.
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
PointStyle |
getPointStyle()
Returns the style of the point.
|
Img |
getPointStyleAsImage()
Returns the style of the point as image.
|
boolean |
isEnableBorderRadius()
If
true , it only shows the borderRadius of a bar when the bar is at the end of the stack. |
boolean |
isPointStyleAsImage()
Returns
true if the point style is set by an Img . |
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color.
|
void |
setBorderColor(IsColor borderColor)
Sets the border color.
|
void |
setBorderColor(String borderColor)
Sets the border color.
|
void |
setBorderRadius(int borderRadius)
Sets the bar border radius (in pixels).
|
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 |
setBorderWidth(int borderWidth)
Sets the border width.
|
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 |
setHoverBackgroundColor(IsColor backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBackgroundColor(String backgroundColor)
Sets the background color when hovered.
|
void |
setHoverBorderColor(IsColor borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderColor(String borderColor)
Sets the border color when hovered.
|
void |
setHoverBorderRadius(int borderRadius)
Sets the bar border radius (in pixels) when hovered.
|
void |
setHoverBorderWidth(int borderWidth)
Sets the border width when hovered.
|
void |
setPointStyle(Img pointStyle)
Sets the style of the point as image .
|
void |
setPointStyle(PointStyle pointStyle)
Sets the style of the point.
|
protected AbstractElement<IsDefaultBar> getElement()
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
- array of the style of the point.public void setPointStyle(Img pointStyle)
pointStyle
- array of the style of the point.public boolean isPointStyleAsImage()
true
if the point style is set by an Img
.true
if the point style is set by an Img
public PointStyle getPointStyle()
public Img getPointStyleAsImage()
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 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()
protected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()