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 String
encode()
Write the point options of ElementsString
getBackgroundColor()
Gets the backgroundColorString
getBorderColor()
Gets the borderColorNumber
getBorderWidth()
Gets the borderWidthNumber
getHitRadius()
Gets the hitRadiusNumber
getHoverBorderWidth()
Gets the hoverBorderWidthNumber
getHoverRadius()
Gets the hoverRadiusString
getPointStyle()
Gets the pointStyleNumber
getRadius()
Gets the radiusvoid
setBackgroundColor(String backgroundColor)
Sets the backgroundColorvoid
setBorderColor(String borderColor)
Sets the borderColorvoid
setBorderWidth(Number borderWidth)
Sets the borderWidthvoid
setHitRadius(Number hitRadius)
Sets the hitRadiusvoid
setHoverBorderWidth(Number hoverBorderWidth)
Sets the hoverBorderWidthvoid
setHoverRadius(Number hoverRadius)
Sets the hoverRadiusvoid
setPointStyle(String pointStyle)
Sets the pointStylevoid
setRadius(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
-
-