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 String
encode()
Write the rectangle options of ElementsString
getBackgroundColor()
Gets the backgroundColorString
getBorderColor()
Gets the borderColorString
getBorderSkipped()
Gets the borderSkippedNumber
getBorderWidth()
Gets the borderWidthvoid
setBackgroundColor(String backgroundColor)
Sets the backgroundColorvoid
setBorderColor(String borderColor)
Sets the borderColorvoid
setBorderSkipped(String borderSkipped)
Sets the borderSkippedvoid
setBorderWidth(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
-
-