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 Stringencode()Write the options of ElementsElementsArcgetArc()Gets the arcElementsLinegetLine()Gets the lineElementsPointgetPoint()Gets the pointElementsRectanglegetRectangle()Gets the rectanglevoidsetArc(ElementsArc arc)Sets the arcvoidsetLine(ElementsLine line)Sets the linevoidsetPoint(ElementsPoint point)Sets the pointvoidsetRectangle(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- theElementsPointobject
-
getLine
public ElementsLine getLine()
Gets the line- Returns:
- line
-
setLine
public void setLine(ElementsLine line)
Sets the line- Parameters:
line- theElementsLineobject
-
getRectangle
public ElementsRectangle getRectangle()
Gets the rectangle- Returns:
- rectangle
-
setRectangle
public void setRectangle(ElementsRectangle rectangle)
Sets the rectangle- Parameters:
rectangle- theElementsRectangleobject
-
getArc
public ElementsArc getArc()
Gets the arc- Returns:
- arc
-
setArc
public void setArc(ElementsArc arc)
Sets the arc- Parameters:
arc- theElementsArcobject
-
encode
public String encode() throws IOException
Write the options of Elements- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-
-