|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.rednels.ofcgwt.client.model.elements.BarChart.Bar
public static class BarChart.Bar
Base class for OFC bar chart bars
| Constructor Summary | |
|---|---|
BarChart.Bar(java.lang.Number top)
Creates a new bar. |
|
BarChart.Bar(java.lang.Number top,
java.lang.Number bottom)
Creates a new bar. |
|
BarChart.Bar(java.lang.Number top,
java.lang.Number bottom,
java.lang.String colour)
Creates a new bar. |
|
BarChart.Bar(java.lang.Number top,
java.lang.String colour)
Creates a new bar. |
|
| Method Summary | |
|---|---|
void |
addOnClickListener(IChartData chart,
IOnClickListener listener)
Adds an onClick event. |
com.google.gwt.json.client.JSONValue |
buildJSON()
Build (and return) a JSONObject that contains all the items of this object. |
java.lang.Number |
getBottom()
Gets the bottom. |
java.lang.String |
getColour()
Gets the colour. |
java.lang.String |
getOnClick()
Gets the onClick. |
java.lang.String |
getTooltip()
Gets the tooltip. |
java.lang.Number |
getTop()
Gets the top. |
void |
setBottom(java.lang.Number bottom)
Sets the bottom. |
void |
setColour(java.lang.String colour)
Sets the colour in HTML hex format (#ffffff) |
void |
setOnClick(java.lang.String onClick)
Sets the onClick. |
void |
setTooltip(java.lang.String tooltip)
Sets the tooltip. |
void |
setTop(java.lang.Number top)
Sets the top. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BarChart.Bar(java.lang.Number top)
top - the top
public BarChart.Bar(java.lang.Number top,
java.lang.Number bottom)
top - the topbottom - the bottom
public BarChart.Bar(java.lang.Number top,
java.lang.Number bottom,
java.lang.String colour)
top - the topbottom - the bottomcolour - the colour
public BarChart.Bar(java.lang.Number top,
java.lang.String colour)
top - the topcolour - the colour| Method Detail |
|---|
public void addOnClickListener(IChartData chart,
IOnClickListener listener)
chart - the IChartDatalistener - the onClick Listenerpublic com.google.gwt.json.client.JSONValue buildJSON()
JSONizable
buildJSON in interface JSONizablepublic java.lang.Number getBottom()
public java.lang.String getColour()
public java.lang.String getOnClick()
public java.lang.String getTooltip()
public java.lang.Number getTop()
public void setBottom(java.lang.Number bottom)
bottom - the new bottompublic void setColour(java.lang.String colour)
colour - the new colourpublic void setOnClick(java.lang.String onClick)
onClick - the onClick javascript method or urlpublic void setTooltip(java.lang.String tooltip)
tooltip - the new tooltippublic void setTop(java.lang.Number top)
top - the new top
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||