com.rednels.ofcgwt.client.model.elements
Class SketchBarChart
java.lang.Object
com.rednels.ofcgwt.client.model.elements.Element
com.rednels.ofcgwt.client.model.elements.BarChart
com.rednels.ofcgwt.client.model.elements.FilledBarChart
com.rednels.ofcgwt.client.model.elements.SketchBarChart
- All Implemented Interfaces:
- JSONizable
public class SketchBarChart
- extends FilledBarChart
- implements JSONizable
Class for an OFC sketch bar chart (drawn) that extends FilledBarChart
- See Also:
FilledBarChart
|
Nested Class Summary |
static class |
SketchBarChart.SketchBar
Class for OFC sketch bar chart bars, extends FilledBarChart.Bar |
|
Constructor Summary |
SketchBarChart()
Creates a new sketch bar chart. |
SketchBarChart(java.lang.String colour,
java.lang.String outlineColour,
java.lang.Integer offset)
Creates a new sketch bar chart. |
|
Method Summary |
com.google.gwt.json.client.JSONValue |
buildJSON()
Build (and return) a JSONObject that contains all the items of this
object. |
java.lang.Integer |
getOffset()
Gets the offset. |
void |
setOffset(java.lang.Integer offset)
Sets the offset (the fun factor). |
| 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 |
SketchBarChart
public SketchBarChart()
- Creates a new sketch bar chart.
SketchBarChart
public SketchBarChart(java.lang.String colour,
java.lang.String outlineColour,
java.lang.Integer offset)
- Creates a new sketch bar chart.
- Parameters:
colour - the colouroutlineColour - the outline colouroffset - the offset
buildJSON
public com.google.gwt.json.client.JSONValue buildJSON()
- Description copied from interface:
JSONizable
- Build (and return) a JSONObject that contains all the items of this
object. If required, will call.buildJSON() on any contained JSONizable
objects, thus producing an entire JSON tree.
- Specified by:
buildJSON in interface JSONizable- Overrides:
buildJSON in class FilledBarChart
- Returns:
- the JSONObject
getOffset
public java.lang.Integer getOffset()
- Gets the offset.
- Returns:
- the offset
setOffset
public void setOffset(java.lang.Integer offset)
- Sets the offset (the fun factor).
- Parameters:
offset - the new offset