|
|||||||||
| 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.BarChart
public class BarChart
Class for an OFC bar chart that extends Element
Element| Nested Class Summary | |
|---|---|
static class |
BarChart.Bar
Base class for OFC bar chart bars |
static class |
BarChart.BarStyle
Enumeration BarStyle - used with BarChart. |
| Constructor Summary | |
|---|---|
BarChart()
Creates a new bar chart with normal style. |
|
BarChart(BarChart.BarStyle style)
Creates a new bar chart. |
|
| Method Summary | |
|---|---|
void |
addBars(BarChart.Bar... bars)
Adds the bars. |
void |
addBars(java.util.List<BarChart.Bar> bars)
Adds the bars. |
void |
addValues(java.util.List<java.lang.Number> values)
Adds the values. |
void |
addValues(java.lang.Number... values)
Adds the values. |
com.google.gwt.json.client.JSONValue |
buildJSON()
Build (and return) a JSONObject that contains all the items of this object. |
java.lang.String |
getColour()
Gets the colour. |
void |
setColour(java.lang.String colour)
Sets the colour in HTML hex format (#ffffff) |
| 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 BarChart()
public BarChart(BarChart.BarStyle style)
style - the style| Method Detail |
|---|
public void addBars(BarChart.Bar... bars)
bars - the barspublic void addBars(java.util.List<BarChart.Bar> bars)
bars - the barspublic 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.String getColour()
public void setColour(java.lang.String colour)
colour - the new colour
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||