Class RadarChartDataSet
- java.lang.Object
-
- org.primefaces.model.charts.ChartDataSet
-
- org.primefaces.model.charts.radar.RadarChartDataSet
-
- All Implemented Interfaces:
Serializable
public class RadarChartDataSet extends ChartDataSet
Used to provide DataSet objects to Radar chart component.
-
-
Constructor Summary
Constructors Constructor Description RadarChartDataSet()
-
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
getBorderCapStyle()
Gets the borderCapStyleString
getBorderColor()
Gets the borderColorList<Number>
getBorderDash()
Gets the borderDashNumber
getBorderDashOffset()
Gets the borderDashOffsetString
getBorderJoinStyle()
Gets the borderJoinStyleNumber
getBorderWidth()
Gets the borderWidthList<Number>
getData()
Gets the list of data in this dataSetObject
getFill()
Gets the fillString
getLabel()
Gets the labelObject
getPointBackgroundColor()
Gets the pointBackgroundColorObject
getPointBorderColor()
Gets the pointBorderColorObject
getPointBorderWidth()
Gets the pointBorderWidthObject
getPointHitRadius()
Gets the pointHitRadiusObject
getPointHoverBackgroundColor()
Gets the pointHoverBackgroundColorObject
getPointHoverBorderColor()
Gets the pointHoverBorderColorObject
getPointHoverBorderWidth()
Gets the pointHoverBorderWidthObject
getPointHoverRadius()
Gets the pointHoverRadiusObject
getPointRadius()
Gets the pointRadiusObject
getPointStyle()
Gets the pointStyleNumber
getTension()
Gets the Bézier curve tension (0 for no Bézier curves)void
setBackgroundColor(String backgroundColor)
Sets the backgroundColorvoid
setBorderCapStyle(String borderCapStyle)
Sets the borderCapStylevoid
setBorderColor(String borderColor)
Sets the borderColorvoid
setBorderDash(List<Number> borderDash)
Sets the borderDashvoid
setBorderDashOffset(Number borderDashOffset)
Sets the borderDashOffsetvoid
setBorderJoinStyle(String borderJoinStyle)
Sets the borderJoinStylevoid
setBorderWidth(Number borderWidth)
Sets the borderWidthvoid
setData(List<Number> data)
Sets the list of data in this dataSetvoid
setFill(Object fill)
Sets the fillvoid
setLabel(String label)
Sets the labelvoid
setPointBackgroundColor(Object pointBackgroundColor)
Sets the pointBackgroundColorvoid
setPointBorderColor(Object pointBorderColor)
Sets the pointBorderColorvoid
setPointBorderWidth(Object pointBorderWidth)
Sets the pointBorderWidthvoid
setPointHitRadius(Object pointHitRadius)
Sets the pointHitRadiusvoid
setPointHoverBackgroundColor(Object pointHoverBackgroundColor)
Sets the pointHoverBackgroundColorvoid
setPointHoverBorderColor(Object pointHoverBorderColor)
Sets the pointHoverBorderColorvoid
setPointHoverBorderWidth(Object pointHoverBorderWidth)
Sets the pointHoverBorderWidthvoid
setPointHoverRadius(Object pointHoverRadius)
Sets the pointHoverRadiusvoid
setPointRadius(Object pointRadius)
Sets the pointRadiusvoid
setPointStyle(Object pointStyle)
Sets the pointStylevoid
setTension(Number tension)
Sets the tension-
Methods inherited from class org.primefaces.model.charts.ChartDataSet
isHidden, setHidden
-
-
-
-
Method Detail
-
getData
public List<Number> getData()
Gets the list of data in this dataSet- Returns:
- data List<Number> list of data
-
setData
public void setData(List<Number> data)
Sets the list of data in this dataSet- Parameters:
data
- List<Number> 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
- The fill color under the line
-
getBorderColor
public String getBorderColor()
Gets the borderColor- Returns:
- borderColor
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the borderColor- Parameters:
borderColor
- The color of the line
-
getBorderWidth
public Number getBorderWidth()
Gets the borderWidth- Returns:
- borderWidth
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the borderWidth- Parameters:
borderWidth
- The width of the line in pixels
-
setBorderDash
public void setBorderDash(List<Number> borderDash)
Sets the borderDash- Parameters:
borderDash
- Length and spacing of dashes
-
getBorderDashOffset
public Number getBorderDashOffset()
Gets the borderDashOffset- Returns:
- borderDashOffset
-
setBorderDashOffset
public void setBorderDashOffset(Number borderDashOffset)
Sets the borderDashOffset- Parameters:
borderDashOffset
- Offset for line dashes
-
getBorderCapStyle
public String getBorderCapStyle()
Gets the borderCapStyle- Returns:
- borderCapStyle
-
setBorderCapStyle
public void setBorderCapStyle(String borderCapStyle)
Sets the borderCapStyle- Parameters:
borderCapStyle
- Cap style of the line
-
getBorderJoinStyle
public String getBorderJoinStyle()
Gets the borderJoinStyle- Returns:
- borderJoinStyle
-
setBorderJoinStyle
public void setBorderJoinStyle(String borderJoinStyle)
Sets the borderJoinStyle- Parameters:
borderJoinStyle
- Line joint style
-
getFill
public Object getFill()
Gets the fill- Returns:
- fill
-
setFill
public void setFill(Object fill)
Sets the fill- Parameters:
fill
- How to fill the area under the line
-
getTension
public Number getTension()
Gets the Bézier curve tension (0 for no Bézier curves)- Returns:
- tension
-
setTension
public void setTension(Number tension)
Sets the tension- Parameters:
tension
- Bézier curve tension (0 for no Bézier curves)
-
getPointBackgroundColor
public Object getPointBackgroundColor()
Gets the pointBackgroundColor- Returns:
- pointBackgroundColor
-
setPointBackgroundColor
public void setPointBackgroundColor(Object pointBackgroundColor)
Sets the pointBackgroundColor- Parameters:
pointBackgroundColor
- The fill color for points.
-
getPointBorderColor
public Object getPointBorderColor()
Gets the pointBorderColor- Returns:
- pointBorderColor
-
setPointBorderColor
public void setPointBorderColor(Object pointBorderColor)
Sets the pointBorderColor- Parameters:
pointBorderColor
- The border color for points.
-
getPointBorderWidth
public Object getPointBorderWidth()
Gets the pointBorderWidth- Returns:
- pointBorderWidth
-
setPointBorderWidth
public void setPointBorderWidth(Object pointBorderWidth)
Sets the pointBorderWidth- Parameters:
pointBorderWidth
- The width of the point border in pixels.
-
getPointRadius
public Object getPointRadius()
Gets the pointRadius- Returns:
- pointRadius
-
setPointRadius
public void setPointRadius(Object pointRadius)
Sets the pointRadius- Parameters:
pointRadius
- The radius of the point shape. If set to 0, the point is not rendered.
-
getPointStyle
public Object getPointStyle()
Gets the pointStyle- Returns:
- pointStyle
-
setPointStyle
public void setPointStyle(Object pointStyle)
Sets the pointStyle- Parameters:
pointStyle
- Style of the point
-
getPointHitRadius
public Object getPointHitRadius()
Gets the pointHitRadius- Returns:
- pointHitRadius
-
setPointHitRadius
public void setPointHitRadius(Object pointHitRadius)
Sets the pointHitRadius- Parameters:
pointHitRadius
- The pixel size of the non-displayed point that reacts to mouse events.
-
getPointHoverBackgroundColor
public Object getPointHoverBackgroundColor()
Gets the pointHoverBackgroundColor- Returns:
- pointHoverBackgroundColor
-
setPointHoverBackgroundColor
public void setPointHoverBackgroundColor(Object pointHoverBackgroundColor)
Sets the pointHoverBackgroundColor- Parameters:
pointHoverBackgroundColor
- Point background color when hovered.
-
getPointHoverBorderColor
public Object getPointHoverBorderColor()
Gets the pointHoverBorderColor- Returns:
- pointHoverBorderColor
-
setPointHoverBorderColor
public void setPointHoverBorderColor(Object pointHoverBorderColor)
Sets the pointHoverBorderColor- Parameters:
pointHoverBorderColor
- Point border color when hovered.
-
getPointHoverBorderWidth
public Object getPointHoverBorderWidth()
Gets the pointHoverBorderWidth- Returns:
- pointHoverBorderWidth
-
setPointHoverBorderWidth
public void setPointHoverBorderWidth(Object pointHoverBorderWidth)
Sets the pointHoverBorderWidth- Parameters:
pointHoverBorderWidth
- Border width of point when hovered.
-
getPointHoverRadius
public Object getPointHoverRadius()
Gets the pointHoverRadius- Returns:
- pointHoverRadius
-
setPointHoverRadius
public void setPointHoverRadius(Object pointHoverRadius)
Sets the pointHoverRadius- Parameters:
pointHoverRadius
- The radius of the point when hovered.
-
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
-
-