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 Stringencode()Write the options of this dataSetStringgetBackgroundColor()Gets the backgroundColorStringgetBorderColor()Gets the borderColorNumbergetBorderWidth()Gets the borderWidthList<BubblePoint>getData()Gets the list of data in this dataSetNumbergetHitRadius()Gets the hitRadiusStringgetHoverBackgroundColor()Gets the hoverBackgroundColorStringgetHoverBorderColor()Gets the hoverBorderColorNumbergetHoverBorderWidth()Gets the hoverBorderWidthNumbergetHoverRadius()Gets the hoverRadiusStringgetLabel()Gets the labelStringgetPointStyle()Gets the pointStyleNumbergetRadius()Gets 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 hoverRadiusvoidsetLabel(String label)Sets the labelvoidsetPointStyle(String pointStyle)Sets the pointStylevoidsetRadius(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:
encodein classChartDataSet- Returns:
- options as JSON object
- Throws:
IOException- If an I/O error occurs
-
-