Class Elements
java.lang.Object
org.primefaces.model.charts.optionconfig.elements.Elements
- All Implemented Interfaces:
Serializable
Used to configure element option under chart options
While chart types provide settings to configure the styling of each dataset,
you sometimes want to style all datasets the same way.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the options of ElementsgetArc()Gets the arcgetLine()Gets the linegetPoint()Gets the pointGets the rectanglevoidsetArc(ElementsArc arc) Sets the arcvoidsetLine(ElementsLine line) Sets the linevoidsetPoint(ElementsPoint point) Sets the pointvoidsetRectangle(ElementsRectangle rectangle) Sets the rectangle
-
Constructor Details
-
Elements
public Elements()
-
-
Method Details
-
getPoint
Gets the point- Returns:
- point
-
setPoint
Sets the point- Parameters:
point- theElementsPointobject
-
getLine
Gets the line- Returns:
- line
-
setLine
Sets the line- Parameters:
line- theElementsLineobject
-
getRectangle
Gets the rectangle- Returns:
- rectangle
-
setRectangle
Sets the rectangle- Parameters:
rectangle- theElementsRectangleobject
-
getArc
Gets the arc- Returns:
- arc
-
setArc
Sets the arc- Parameters:
arc- theElementsArcobject
-
encode
Write the options of Elements- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-