Class ElementsPoint
- java.lang.Object
-
- org.primefaces.model.charts.optionconfig.elements.ElementsPoint
-
- All Implemented Interfaces:
Serializable
public class ElementsPoint extends Object implements Serializable
Point elements are used to represent the points in a line chart or a bubble chart.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementsPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringencode()Write the point options of ElementsStringgetBackgroundColor()Gets the backgroundColorStringgetBorderColor()Gets the borderColorNumbergetBorderWidth()Gets the borderWidthNumbergetHitRadius()Gets the hitRadiusNumbergetHoverBorderWidth()Gets the hoverBorderWidthNumbergetHoverRadius()Gets the hoverRadiusStringgetPointStyle()Gets the pointStyleNumbergetRadius()Gets 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 pointStylevoidsetRadius(Number radius)Sets the radius
-
-
-
Method Detail
-
getRadius
public Number getRadius()
Gets the radius- Returns:
- radius
-
setRadius
public void setRadius(Number radius)
Sets the radius- Parameters:
radius- Point radius.
-
getPointStyle
public String getPointStyle()
Gets the pointStyle- Returns:
- pointStyle
-
setPointStyle
public void setPointStyle(String pointStyle)
Sets the pointStyle- Parameters:
pointStyle- Point style.
-
getBackgroundColor
public String getBackgroundColor()
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
Sets the backgroundColor- Parameters:
backgroundColor- Point fill color.
-
getBorderWidth
public Number getBorderWidth()
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the borderWidth- Parameters:
borderWidth- Point stroke width.
-
getBorderColor
public String getBorderColor()
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the borderColor- Parameters:
borderColor- Point stroke color.
-
getHitRadius
public Number getHitRadius()
Gets the hitRadius- Returns:
- hitRadius
-
setHitRadius
public void setHitRadius(Number hitRadius)
Sets the hitRadius- Parameters:
hitRadius- Extra radius added to point radius for hit detection.
-
getHoverRadius
public Number getHoverRadius()
Gets the hoverRadius- Returns:
- hoverRadius
-
setHoverRadius
public void setHoverRadius(Number hoverRadius)
Sets the hoverRadius- Parameters:
hoverRadius- Point radius when hovered.
-
getHoverBorderWidth
public Number getHoverBorderWidth()
Gets the hoverBorderWidth- Returns:
- hoverBorderWidth
-
setHoverBorderWidth
public void setHoverBorderWidth(Number hoverBorderWidth)
Sets the hoverBorderWidth- Parameters:
hoverBorderWidth- Stroke width when hovered.
-
encode
public String encode() throws IOException
Write the point options of Elements- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-
-