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

java.lang.Object
  extended by com.rednels.ofcgwt.client.model.elements.BarChart.Bar
      extended by com.rednels.ofcgwt.client.model.elements.FilledBarChart.Bar
          extended by com.rednels.ofcgwt.client.model.elements.SketchBarChart.SketchBar
All Implemented Interfaces:
JSONizable
Enclosing class:
SketchBarChart

public static class SketchBarChart.SketchBar
extends FilledBarChart.Bar
implements JSONizable

Class for OFC sketch bar chart bars, extends FilledBarChart.Bar

See Also:
FilledBarChart.Bar

Constructor Summary
SketchBarChart.SketchBar(java.lang.Number top)
          Creates a new bar.
SketchBarChart.SketchBar(java.lang.Number top, java.lang.Integer offset)
          Creates a new bar.
SketchBarChart.SketchBar(java.lang.Number top, java.lang.Number bottom, java.lang.Integer offset)
          Creates a new bar.
 
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.Bar
getOutlineColour, setOutlineColour
 
Methods inherited from class com.rednels.ofcgwt.client.model.elements.BarChart.Bar
addOnClickListener, getBottom, getColour, getOnClick, getTooltip, getTop, setBottom, setColour, setOnClick, setTooltip, setTop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SketchBarChart.SketchBar

public SketchBarChart.SketchBar(java.lang.Number top)
Creates a new bar.

Parameters:
top - the top

SketchBarChart.SketchBar

public SketchBarChart.SketchBar(java.lang.Number top,
                                java.lang.Integer offset)
Creates a new bar.

Parameters:
top - the top
offset - the offset

SketchBarChart.SketchBar

public SketchBarChart.SketchBar(java.lang.Number top,
                                java.lang.Number bottom,
                                java.lang.Integer offset)
Creates a new bar.

Parameters:
top - the top
bottom - the bottom
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.Bar
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