public class Rectangle extends Object
Rectangle elements are used to represent the bars in a bar chart.
When set, these options apply to all objects of that type unless specifically overridden by the configuration attached to a dataset.
Constructor and Description |
---|
Rectangle() |
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor() |
Color |
getBorderColor() |
BorderSkipped |
getBorderSkipped() |
Integer |
getBorderWidth() |
Rectangle |
setBackgroundColor(Color backgroundColor)
Default bar fill color
|
Rectangle |
setBorderColor(Color borderColor)
Default bar stroke color
|
Rectangle |
setBorderSkipped(BorderSkipped borderSkipped)
Default skipped (excluded) border for rectangle.
|
Rectangle |
setBorderWidth(Integer borderWidth)
Default bar stroke width
|
public Color getBackgroundColor()
setBackgroundColor(Color)
public Rectangle setBackgroundColor(Color backgroundColor)
Default bar fill color
Default 'rgba(0,0,0,0.1)'
public Integer getBorderWidth()
setBorderWidth(Integer)
public Rectangle setBorderWidth(Integer borderWidth)
Default bar stroke width
Default 0
public Color getBorderColor()
setBorderColor(Color)
public Rectangle setBorderColor(Color borderColor)
Default bar stroke color
Default 'rgba(0,0,0,0.1)'
public BorderSkipped getBorderSkipped()
setBorderSkipped(BorderSkipped)
public Rectangle setBorderSkipped(BorderSkipped borderSkipped)
Default skipped (excluded) border for rectangle. Can be one of bottom, left, top, right
Default 'bottom'
Copyright © 2017. All rights reserved.