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:
  • Constructor Details

    • BubbleChartDataSet

      public BubbleChartDataSet()
  • Method Details

    • 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 class ChartDataSet
      Returns:
      options as JSON object
      Throws:
      IOException - If an I/O error occurs