public class GooglePieChart
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
dataName
The unit description of the data
See Google Charts API
|
private java.lang.String |
dataType
The data type of the chart
See Google Charts API
|
private double |
donutHoleSize
The size of a donut hole in a donut hole chart as specified in the Charts API
See Google Charts API
|
private int |
height
The height of the chart in pixels, provided in-line in the JSF tag with the "height" parameter, excluding "px".
|
(package private) java.lang.String |
id
an ID that will be provided by the JSF build cycle
|
private boolean |
is3d
A boolean to represent a 3-Dimensional chart
|
private int |
rotation
Degrees of rotation to rotate the pie chart.
|
private boolean |
showSliceText
A boolean to represent shown or hidden pie slice labels
|
private java.util.ArrayList<PieSlice> |
slices
A list of pie slices.
|
private java.lang.String |
title
The title of the chart.
|
private boolean |
titleBold
A boolean to represent a bolded title
|
private java.lang.String |
titleColor
A color value to use for the chart's title.
|
private int |
width
The width of the chart in pixels, provided in-line in the JSF tag with the "width" parameter, excluding "px".
|
| Constructor and Description |
|---|
GooglePieChart(java.lang.String dataName,
java.lang.String dataType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSlice(PieSlice slice) |
java.lang.String |
getDataName() |
java.lang.String |
getDataType() |
double |
getDonutHoleSize() |
int |
getHeight() |
java.lang.String |
getId() |
int |
getRotation() |
java.util.ArrayList<PieSlice> |
getSlices() |
java.lang.String |
getTitle() |
java.lang.String |
getTitleColor() |
int |
getWidth() |
boolean |
isIs3d() |
boolean |
isShowSliceText() |
boolean |
isTitleBold() |
void |
setDataName(java.lang.String dataName) |
void |
setDataType(java.lang.String dataType) |
void |
setDonutHoleSize(double d) |
void |
setHeight(int height) |
void |
setId(java.lang.String id) |
void |
setIs3d(boolean is3d) |
void |
setRotation(int rotation) |
void |
setShowSliceText(boolean showSliceText) |
void |
setSlices(java.util.ArrayList<PieSlice> slices) |
void |
setTitle(java.lang.String title) |
void |
setTitleBold(boolean titleBold) |
void |
setTitleColor(java.lang.String titleColor) |
void |
setWidth(int width) |
java.lang.String id
private java.lang.String title
private java.lang.String dataType
private java.lang.String dataName
private java.lang.String titleColor
private boolean titleBold
private java.util.ArrayList<PieSlice> slices
addSlice method.private int width
private int height
private boolean is3d
private boolean showSliceText
private double donutHoleSize
private int rotation
public GooglePieChart(java.lang.String dataName,
java.lang.String dataType)
public void addSlice(PieSlice slice)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getTitleColor()
public void setTitleColor(java.lang.String titleColor)
public boolean isTitleBold()
public void setTitleBold(boolean titleBold)
public java.util.ArrayList<PieSlice> getSlices()
public void setSlices(java.util.ArrayList<PieSlice> slices)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public boolean isIs3d()
public void setIs3d(boolean is3d)
public void setDonutHoleSize(double d)
public int getRotation()
public void setRotation(int rotation)
public java.lang.String getDataType()
public void setDataType(java.lang.String dataType)
public java.lang.String getDataName()
public void setDataName(java.lang.String dataName)
public java.lang.String getId()
public void setId(java.lang.String id)
public double getDonutHoleSize()
public boolean isShowSliceText()
public void setShowSliceText(boolean showSliceText)