|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.rednels.ofcgwt.client.model.elements.Element
com.rednels.ofcgwt.client.model.elements.PieChart
public class PieChart
Class for an OFC pie chart that extends Element
Element| Nested Class Summary | |
|---|---|
static class |
PieChart.Slice
Base class for OFC pie slices |
| 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 values. |
com.google.gwt.json.client.JSONValue |
buildJSON()
Build (and return) a JSONObject that contains all the items of this object. |
java.lang.Float |
getAlpha()
Gets the alpha. |
java.lang.Boolean |
getAlphaHighlight()
Gets the alphaHighlight value |
java.lang.Boolean |
getAnimate()
Gets the animation value |
java.lang.Integer |
getBorder()
Gets the border. |
java.util.Collection<java.lang.String> |
getColours()
Gets the colours. |
java.lang.Boolean |
getGradientFill()
Gets the gradient fill. |
java.lang.Boolean |
getNoLabels()
Gets the no labels value |
java.lang.Integer |
getRadius()
|
java.lang.Integer |
getStartAngle()
Gets the start angle. |
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(java.lang.Integer border)
Sets the border. |
void |
setColours(java.util.Collection<java.lang.String> colours)
Sets colours in HTML hex format (#ffffff) |
void |
setColours(java.util.List<java.lang.String> colours)
Sets the colours. |
void |
setColours(java.lang.String... colours)
Sets colours in HTML hex format (#ffffff) |
void |
setGradientFill(boolean gradientFill)
Sets the gradient fill. |
void |
setNoLabels(boolean nolabels)
Sets the no labels. |
void |
setRadius(java.lang.Integer radius)
|
void |
setStartAngle(java.lang.Integer startAngle)
Sets the start angle. |
| Methods inherited from class com.rednels.ofcgwt.client.model.elements.Element |
|---|
addKeyOnClickListener, addNull, addOnClickListener, getFontSize, getKeyOnClick, getOnClick, getText, getTooltip, getType, getValues, setFontSize, setKeyOnClick, setKeys, setKeys, setKeyToggleOnClick, setOnClick, setText, setTooltip, setValues |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 com.google.gwt.json.client.JSONValue buildJSON()
JSONizable
buildJSON in interface JSONizablebuildJSON in class Elementpublic java.lang.Float getAlpha()
public java.lang.Boolean getAlphaHighlight()
public java.lang.Boolean getAnimate()
public java.lang.Integer getBorder()
public java.util.Collection<java.lang.String> getColours()
public java.lang.Boolean getGradientFill()
public java.lang.Boolean getNoLabels()
public java.lang.Integer getStartAngle()
public java.lang.Integer getRadius()
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(java.lang.Integer border)
border - the new borderpublic void setColours(java.util.Collection<java.lang.String> colours)
colours - the new colourspublic void setColours(java.util.List<java.lang.String> colours)
colours - the new colourspublic void setColours(java.lang.String... colours)
colours - the new colourspublic void setGradientFill(boolean gradientFill)
gradientFill - true or falsepublic void setNoLabels(boolean nolabels)
nolabels - true or falsepublic void setStartAngle(java.lang.Integer startAngle)
startAngle - the new start anglepublic void setRadius(java.lang.Integer radius)
radius - the radius to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||