Class ElementsRectangle
java.lang.Object
org.primefaces.model.charts.optionconfig.elements.ElementsRectangle
- All Implemented Interfaces:
Serializable
Rectangle elements are used to represent the bars in a bar chart.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the rectangle options of ElementsGets the backgroundColorGets the borderColorGets the borderSkippedGets the borderWidthvoidsetBackgroundColor(String backgroundColor) Sets the backgroundColorvoidsetBorderColor(String borderColor) Sets the borderColorvoidsetBorderSkipped(String borderSkipped) Sets the borderSkippedvoidsetBorderWidth(Number borderWidth) Sets the borderWidth
-
Constructor Details
-
ElementsRectangle
public ElementsRectangle()
-
-
Method Details
-
getBackgroundColor
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
Sets the backgroundColor- Parameters:
backgroundColor- Bar fill color.
-
getBorderWidth
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
Sets the borderWidth- Parameters:
borderWidth- Bar stroke width.
-
getBorderColor
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
Sets the borderColor- Parameters:
borderColor- Bar stroke color.
-
getBorderSkipped
Gets the borderSkipped- Returns:
- borderSkipped
-
setBorderSkipped
Sets the borderSkipped- Parameters:
borderSkipped- Skipped (excluded) border: 'bottom', 'left', 'top' or 'right'.
-
encode
Write the rectangle options of Elements- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-