Class Elements
- java.lang.Object
-
- org.primefaces.model.charts.optionconfig.elements.Elements
-
- All Implemented Interfaces:
Serializable
public class Elements extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Elements()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encode()
Write the options of ElementsElementsArc
getArc()
Gets the arcElementsLine
getLine()
Gets the lineElementsPoint
getPoint()
Gets the pointElementsRectangle
getRectangle()
Gets the rectanglevoid
setArc(ElementsArc arc)
Sets the arcvoid
setLine(ElementsLine line)
Sets the linevoid
setPoint(ElementsPoint point)
Sets the pointvoid
setRectangle(ElementsRectangle rectangle)
Sets the rectangle
-
-
-
Method Detail
-
getPoint
public ElementsPoint getPoint()
Gets the point- Returns:
- point
-
setPoint
public void setPoint(ElementsPoint point)
Sets the point- Parameters:
point
- theElementsPoint
object
-
getLine
public ElementsLine getLine()
Gets the line- Returns:
- line
-
setLine
public void setLine(ElementsLine line)
Sets the line- Parameters:
line
- theElementsLine
object
-
getRectangle
public ElementsRectangle getRectangle()
Gets the rectangle- Returns:
- rectangle
-
setRectangle
public void setRectangle(ElementsRectangle rectangle)
Sets the rectangle- Parameters:
rectangle
- theElementsRectangle
object
-
getArc
public ElementsArc getArc()
Gets the arc- Returns:
- arc
-
setArc
public void setArc(ElementsArc arc)
Sets the arc- Parameters:
arc
- theElementsArc
object
-
encode
public String encode() throws IOException
Write the options of Elements- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-
-