com.rednels.ofcgwt.client.model.elements
Class SketchBarChart

java.lang.Object
  extended by com.rednels.ofcgwt.client.model.elements.Element
      extended by com.rednels.ofcgwt.client.model.elements.BarChart
          extended by com.rednels.ofcgwt.client.model.elements.FilledBarChart
              extended by 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
 
Nested classes/interfaces inherited from class com.rednels.ofcgwt.client.model.elements.FilledBarChart
FilledBarChart.Bar
 
Nested classes/interfaces inherited from class com.rednels.ofcgwt.client.model.elements.BarChart
BarChart.BarStyle
 
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.FilledBarChart
getOutlineColour, setOutlineColour
 
Methods inherited from class com.rednels.ofcgwt.client.model.elements.BarChart
addBars, addBars, addValues, addValues, getColour, setColour
 
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

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 colour
outlineColour - the outline colour
offset - the offset
Method Detail

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