Class BubbleChartDataSet
java.lang.Object
org.primefaces.model.charts.ChartDataSet
org.primefaces.model.charts.bubble.BubbleChartDataSet
- All Implemented Interfaces:
Serializable
Used to provide DataSet objects to Bubble chart component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencode()Write the options of this dataSetGets the backgroundColorGets the borderColorGets the borderWidthgetData()Gets the list of data in this dataSetGets the hitRadiusGets the hoverBackgroundColorGets the hoverBorderColorGets the hoverBorderWidthGets the hoverRadiusgetLabel()Gets the labelGets the pointStyleGets the radiusvoidsetBackgroundColor(String backgroundColor) Sets the backgroundColorvoidsetBorderColor(String borderColor) Sets the borderColorvoidsetBorderWidth(Number borderWidth) Sets the borderWidthvoidsetData(List<BubblePoint> data) Sets the list of data in this dataSetvoidsetHitRadius(Number hitRadius) Sets the hitRadiusvoidsetHoverBackgroundColor(String hoverBackgroundColor) Sets the hoverBackgroundColorvoidsetHoverBorderColor(String hoverBorderColor) Sets the hoverBorderColorvoidsetHoverBorderWidth(Number hoverBorderWidth) Sets the hoverBorderWidthvoidsetHoverRadius(Number hoverRadius) Sets the hoverRadiusvoidSets the labelvoidsetPointStyle(String pointStyle) Sets the pointStylevoidSets the radiusMethods inherited from class org.primefaces.model.charts.ChartDataSet
isHidden, setHidden
-
Constructor Details
-
BubbleChartDataSet
public BubbleChartDataSet()
-
-
Method Details
-
getData
Gets the list of data in this dataSet- Returns:
- List<
BubblePoint> list of data
-
setData
Sets the list of data in this dataSet- Parameters:
data- List<BubblePoint> list of data
-
getLabel
Gets the label- Returns:
- label
-
setLabel
Sets the label- Parameters:
label- The label for the dataset which appears in the legend and tooltips
-
getBackgroundColor
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
Sets the backgroundColor- Parameters:
backgroundColor- bubble background color
-
getBorderColor
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
Sets the borderColor- Parameters:
borderColor- bubble border color
-
getBorderWidth
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
Sets the borderWidth- Parameters:
borderWidth- bubble border width (in pixels)
-
getHoverBackgroundColor
Gets the hoverBackgroundColor- Returns:
- hoverBackgroundColor
-
setHoverBackgroundColor
Sets the hoverBackgroundColor- Parameters:
hoverBackgroundColor- bubble background color when hovered
-
getHoverBorderColor
Gets the hoverBorderColor- Returns:
- hoverBorderColor
-
setHoverBorderColor
Sets the hoverBorderColor- Parameters:
hoverBorderColor- bubble border color hovered
-
getHoverBorderWidth
Gets the hoverBorderWidth- Returns:
- hoverBorderWidth
-
setHoverBorderWidth
Sets the hoverBorderWidth- Parameters:
hoverBorderWidth- bubble border width when hovered (in pixels)
-
getHoverRadius
Gets the hoverRadius- Returns:
- hoverRadius
-
setHoverRadius
Sets the hoverRadius- Parameters:
hoverRadius- bubble additional radius when hovered (in pixels)
-
getHitRadius
Gets the hitRadius- Returns:
- hitRadius
-
setHitRadius
Sets the hitRadius- Parameters:
hitRadius- bubble additional radius for hit detection (in pixels)
-
getPointStyle
Gets the pointStyle- Returns:
- pointStyle
-
setPointStyle
Sets the pointStyle- Parameters:
pointStyle- bubble shape style
-
getRadius
Gets the radius- Returns:
- radius
-
setRadius
Sets the radius- Parameters:
radius- bubble radius (in pixels)
-
encode
Write the options of this dataSet- Overrides:
encodein classChartDataSet- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-