Class ElementsRectangle
- java.lang.Object
-
- org.primefaces.model.charts.optionconfig.elements.ElementsRectangle
-
- All Implemented Interfaces:
Serializable
public class ElementsRectangle extends Object implements Serializable
Rectangle elements are used to represent the bars in a bar chart.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementsRectangle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode()Write the rectangle options of ElementsStringgetBackgroundColor()Gets the backgroundColorStringgetBorderColor()Gets the borderColorStringgetBorderSkipped()Gets the borderSkippedNumbergetBorderWidth()Gets the borderWidthvoidsetBackgroundColor(String backgroundColor)Sets the backgroundColorvoidsetBorderColor(String borderColor)Sets the borderColorvoidsetBorderSkipped(String borderSkipped)Sets the borderSkippedvoidsetBorderWidth(Number borderWidth)Sets the borderWidth
-
-
-
Method Detail
-
getBackgroundColor
public String getBackgroundColor()
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
Sets the backgroundColor- Parameters:
backgroundColor- Bar fill color.
-
getBorderWidth
public Number getBorderWidth()
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the borderWidth- Parameters:
borderWidth- Bar stroke width.
-
getBorderColor
public String getBorderColor()
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the borderColor- Parameters:
borderColor- Bar stroke color.
-
getBorderSkipped
public String getBorderSkipped()
Gets the borderSkipped- Returns:
- borderSkipped
-
setBorderSkipped
public void setBorderSkipped(String borderSkipped)
Sets the borderSkipped- Parameters:
borderSkipped- Skipped (excluded) border: 'bottom', 'left', 'top' or 'right'.
-
encode
public String encode() throws IOException
Write the rectangle options of Elements- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-
-