Class ElementsPoint
java.lang.Object
org.primefaces.model.charts.optionconfig.elements.ElementsPoint
- All Implemented Interfaces:
Serializable
Point elements are used to represent the points in a line chart or a bubble chart.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the point options of ElementsGets the backgroundColorGets the borderColorGets the borderWidthGets the hitRadiusGets the hoverBorderWidthGets the hoverRadiusGets the pointStyleGets the radiusvoidsetBackgroundColor(String backgroundColor) Sets the backgroundColorvoidsetBorderColor(String borderColor) Sets the borderColorvoidsetBorderWidth(Number borderWidth) Sets the borderWidthvoidsetHitRadius(Number hitRadius) Sets the hitRadiusvoidsetHoverBorderWidth(Number hoverBorderWidth) Sets the hoverBorderWidthvoidsetHoverRadius(Number hoverRadius) Sets the hoverRadiusvoidsetPointStyle(String pointStyle) Sets the pointStylevoidSets the radius
-
Constructor Details
-
ElementsPoint
public ElementsPoint()
-
-
Method Details
-
getRadius
Gets the radius- Returns:
- radius
-
setRadius
Sets the radius- Parameters:
radius- Point radius.
-
getPointStyle
Gets the pointStyle- Returns:
- pointStyle
-
setPointStyle
Sets the pointStyle- Parameters:
pointStyle- Point style.
-
getBackgroundColor
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
Sets the backgroundColor- Parameters:
backgroundColor- Point fill color.
-
getBorderWidth
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
Sets the borderWidth- Parameters:
borderWidth- Point stroke width.
-
getBorderColor
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
Sets the borderColor- Parameters:
borderColor- Point stroke color.
-
getHitRadius
Gets the hitRadius- Returns:
- hitRadius
-
setHitRadius
Sets the hitRadius- Parameters:
hitRadius- Extra radius added to point radius for hit detection.
-
getHoverRadius
Gets the hoverRadius- Returns:
- hoverRadius
-
setHoverRadius
Sets the hoverRadius- Parameters:
hoverRadius- Point radius when hovered.
-
getHoverBorderWidth
Gets the hoverBorderWidth- Returns:
- hoverBorderWidth
-
setHoverBorderWidth
Sets the hoverBorderWidth- Parameters:
hoverBorderWidth- Stroke width when hovered.
-
encode
Write the point options of Elements- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-