Class BubbleChartDataSet
- java.lang.Object
-
- org.primefaces.model.charts.ChartDataSet
-
- org.primefaces.model.charts.bubble.BubbleChartDataSet
-
- All Implemented Interfaces:
Serializable
public class BubbleChartDataSet extends ChartDataSet
Used to provide DataSet objects to Bubble chart component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BubbleChartDataSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encode()
Write the options of this dataSetString
getBackgroundColor()
Gets the backgroundColorString
getBorderColor()
Gets the borderColorNumber
getBorderWidth()
Gets the borderWidthList<BubblePoint>
getData()
Gets the list of data in this dataSetNumber
getHitRadius()
Gets the hitRadiusString
getHoverBackgroundColor()
Gets the hoverBackgroundColorString
getHoverBorderColor()
Gets the hoverBorderColorNumber
getHoverBorderWidth()
Gets the hoverBorderWidthNumber
getHoverRadius()
Gets the hoverRadiusString
getLabel()
Gets the labelString
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
setData(List<BubblePoint> data)
Sets the list of data in this dataSetvoid
setHitRadius(Number hitRadius)
Sets the hitRadiusvoid
setHoverBackgroundColor(String hoverBackgroundColor)
Sets the hoverBackgroundColorvoid
setHoverBorderColor(String hoverBorderColor)
Sets the hoverBorderColorvoid
setHoverBorderWidth(Number hoverBorderWidth)
Sets the hoverBorderWidthvoid
setHoverRadius(Number hoverRadius)
Sets the hoverRadiusvoid
setLabel(String label)
Sets the labelvoid
setPointStyle(String pointStyle)
Sets the pointStylevoid
setRadius(Number radius)
Sets the radius-
Methods inherited from class org.primefaces.model.charts.ChartDataSet
isHidden, setHidden
-
-
-
-
Method Detail
-
getData
public List<BubblePoint> getData()
Gets the list of data in this dataSet- Returns:
- List<
BubblePoint
> list of data
-
setData
public void setData(List<BubblePoint> data)
Sets the list of data in this dataSet- Parameters:
data
- List<BubblePoint
> list of data
-
getLabel
public String getLabel()
Gets the label- Returns:
- label
-
setLabel
public void setLabel(String label)
Sets the label- Parameters:
label
- The label for the dataset which appears in the legend and tooltips
-
getBackgroundColor
public String getBackgroundColor()
Gets the backgroundColor- Returns:
- backgroundColor
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
Sets the backgroundColor- Parameters:
backgroundColor
- bubble background color
-
getBorderColor
public String getBorderColor()
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the borderColor- Parameters:
borderColor
- bubble border color
-
getBorderWidth
public Number getBorderWidth()
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the borderWidth- Parameters:
borderWidth
- bubble border width (in pixels)
-
getHoverBackgroundColor
public String getHoverBackgroundColor()
Gets the hoverBackgroundColor- Returns:
- hoverBackgroundColor
-
setHoverBackgroundColor
public void setHoverBackgroundColor(String hoverBackgroundColor)
Sets the hoverBackgroundColor- Parameters:
hoverBackgroundColor
- bubble background color when hovered
-
getHoverBorderColor
public String getHoverBorderColor()
Gets the hoverBorderColor- Returns:
- hoverBorderColor
-
setHoverBorderColor
public void setHoverBorderColor(String hoverBorderColor)
Sets the hoverBorderColor- Parameters:
hoverBorderColor
- bubble border color hovered
-
getHoverBorderWidth
public Number getHoverBorderWidth()
Gets the hoverBorderWidth- Returns:
- hoverBorderWidth
-
setHoverBorderWidth
public void setHoverBorderWidth(Number hoverBorderWidth)
Sets the hoverBorderWidth- Parameters:
hoverBorderWidth
- bubble border width when hovered (in pixels)
-
getHoverRadius
public Number getHoverRadius()
Gets the hoverRadius- Returns:
- hoverRadius
-
setHoverRadius
public void setHoverRadius(Number hoverRadius)
Sets the hoverRadius- Parameters:
hoverRadius
- bubble additional radius when hovered (in pixels)
-
getHitRadius
public Number getHitRadius()
Gets the hitRadius- Returns:
- hitRadius
-
setHitRadius
public void setHitRadius(Number hitRadius)
Sets the hitRadius- Parameters:
hitRadius
- bubble additional radius for hit detection (in pixels)
-
getPointStyle
public String getPointStyle()
Gets the pointStyle- Returns:
- pointStyle
-
setPointStyle
public void setPointStyle(String pointStyle)
Sets the pointStyle- Parameters:
pointStyle
- bubble shape style
-
getRadius
public Number getRadius()
Gets the radius- Returns:
- radius
-
setRadius
public void setRadius(Number radius)
Sets the radius- Parameters:
radius
- bubble radius (in pixels)
-
encode
public String encode() throws IOException
Write the options of this dataSet- Overrides:
encode
in classChartDataSet
- Returns:
- options as JSON object
- Throws:
IOException
- If an I/O error occurs
-
-