|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extjs.gxt.ui.client.data.BaseModelData
com.extjs.gxt.ui.client.data.BaseModel
com.extjs.gxt.charts.client.model.charts.ChartConfig
com.extjs.gxt.charts.client.model.charts.PieChart
public class PieChart
OFC Pie Chart.
| Nested Class Summary | |
|---|---|
static class |
PieChart.Slice
|
| Field Summary |
|---|
| Fields inherited from class com.extjs.gxt.charts.client.model.charts.ChartConfig |
|---|
dataProvider, model |
| Fields inherited from class com.extjs.gxt.ui.client.data.BaseModel |
|---|
changeEventSupport |
| Fields inherited from class com.extjs.gxt.ui.client.data.BaseModelData |
|---|
allowNestedValues, map |
| Fields inherited from interface com.extjs.gxt.ui.client.data.ChangeEventSource |
|---|
Add, Remove, Update |
| Constructor Summary | |
|---|---|
PieChart()
Creates a new pie chart. |
|
| Method Summary | |
|---|---|
void |
addSlice(java.lang.Number value,
java.lang.String text)
Adds a slice. |
void |
addSlices(java.util.List<PieChart.Slice> slices)
Adds slices. |
void |
addSlices(PieChart.Slice... slice)
Adds slices. |
void |
addValues(java.util.List<java.lang.Number> values)
Adds the values. |
void |
addValues(java.lang.Number... values)
Adds the values. |
float |
getAlpha()
Returns the alpha. |
int |
getBorder()
Returns the border. |
java.util.Collection<java.lang.String> |
getColours()
Returns the colours. |
java.lang.Integer |
getRadius()
Returns the radius. |
java.lang.Integer |
getStartAngle()
Returns the start angle. |
boolean |
isAlphaHighlightEnabled()
Returns true if slice alpha highlighting is enabled, otherwise slice animates. |
boolean |
isAnimationEnabled()
Returns true if the pie has animation enabled |
boolean |
isGradientFillEnabled()
Returns true if pie slices are to be gradient filled. |
boolean |
isNoLabelsEnabled()
Returns true if pie slices are not to have labels. |
void |
setAlpha(java.lang.Float alpha)
Sets the alpha. |
void |
setAlphaHighlight(boolean alphaHighlight)
Sets alpha colour toggle as the highlight, or slice slide out animation. |
void |
setAnimate(boolean animate)
Sets if animation of slice rotation build is enabled. |
void |
setBorder(int border)
Sets the border. |
void |
setColours(java.util.Collection<java.lang.String> colours)
Sets colours in HTML hex format (#ffffff) |
void |
setColours(java.lang.String... list)
Sets colours in HTML hex format (#ffffff) |
void |
setDataProvider(PieDataProvider dataProvider)
Sets the charts data provider. |
void |
setGradientFill(boolean gradientFill)
Sets the gradient fill. |
void |
setNoLabels(boolean nolabels)
True to hide labels. |
void |
setRadius(java.lang.Integer radius)
Sets the radius. |
void |
setStartAngle(java.lang.Integer startAngle)
Sets the start angle. |
| Methods inherited from class com.extjs.gxt.charts.client.model.charts.ChartConfig |
|---|
addChartListener, addNullValue, getChartListeners, getDataProvider, getFontSize, getModel, getText, getTooltip, getType, getValues, isEnableEvents, removeChartListener, setAnimateOnShow, setDataProvider, setEnableEvents, setFontSize, setKeys, setKeys, setModel, setText, setTooltip, setValues |
| Methods inherited from class com.extjs.gxt.ui.client.data.BaseModel |
|---|
addChangeListener, addChangeListener, fireEvent, fireEvent, isSilent, notify, notifyPropertyChanged, remove, removeChangeListener, removeChangeListeners, set, setSilent |
| Methods inherited from class com.extjs.gxt.ui.client.data.BaseModelData |
|---|
get, get, getProperties, getPropertyNames, isAllowNestedValues, setAllowNestedValues, setProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.extjs.gxt.ui.client.data.ModelData |
|---|
get, getProperties, getPropertyNames |
| Constructor Detail |
|---|
public PieChart()
| Method Detail |
|---|
public void addSlice(java.lang.Number value,
java.lang.String text)
value - the valuetext - the textpublic void addSlices(java.util.List<PieChart.Slice> slices)
slices - the slicespublic void addSlices(PieChart.Slice... slice)
slice - the slicepublic void addValues(java.util.List<java.lang.Number> values)
values - the valuespublic void addValues(java.lang.Number... values)
values - the valuespublic float getAlpha()
public int getBorder()
public java.util.Collection<java.lang.String> getColours()
public java.lang.Integer getRadius()
public java.lang.Integer getStartAngle()
public boolean isAlphaHighlightEnabled()
public boolean isAnimationEnabled()
public boolean isGradientFillEnabled()
public boolean isNoLabelsEnabled()
public void setAlpha(java.lang.Float alpha)
alpha - the alphapublic void setAlphaHighlight(boolean alphaHighlight)
alphaHighlight - true or falsepublic void setAnimate(boolean animate)
animate - true or falsepublic void setBorder(int border)
border - the new borderpublic void setColours(java.util.Collection<java.lang.String> colours)
colours - the new colourspublic void setColours(java.lang.String... list)
list - the new colourspublic void setDataProvider(PieDataProvider dataProvider)
dataProvider - the data providerpublic void setGradientFill(boolean gradientFill)
gradientFill - true or falsepublic void setNoLabels(boolean nolabels)
nolabels - true to hide labelspublic void setRadius(java.lang.Integer radius)
radius - the radius to setpublic void setStartAngle(java.lang.Integer startAngle)
startAngle - the new start angle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||