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

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
All Implemented Interfaces:
JSONizable
Direct Known Subclasses:
SketchBarChart

public class FilledBarChart
extends BarChart
implements JSONizable

Class for an OFC filled bar chart (outlined) that extends BarChart

See Also:
BarChart

Nested Class Summary
static class FilledBarChart.Bar
          Class for OFC filled bar chart bars, extends BarChart.Bar
 
Nested classes/interfaces inherited from class com.rednels.ofcgwt.client.model.elements.BarChart
BarChart.BarStyle
 
Constructor Summary
FilledBarChart()
          Creates a new filled bar chart.
FilledBarChart(java.lang.String colour, java.lang.String outlineColour)
          Creates a new filled 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.String getOutlineColour()
          Gets the outline colour.
 void setOutlineColour(java.lang.String outlineColour)
          Sets the outline colour in HTML hex format (#ffffff)
 
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

FilledBarChart

public FilledBarChart()
Creates a new filled bar chart.


FilledBarChart

public FilledBarChart(java.lang.String colour,
                      java.lang.String outlineColour)
Creates a new filled bar chart.

Parameters:
colour - the colour
outlineColour - the outline colour
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 BarChart
Returns:
the JSONObject

getOutlineColour

public java.lang.String getOutlineColour()
Gets the outline colour.

Returns:
the outline colour

setOutlineColour

public void setOutlineColour(java.lang.String outlineColour)
Sets the outline colour in HTML hex format (#ffffff)

Parameters:
outlineColour - the new outline colour