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

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

public static class FilledBarChart.Bar
extends BarChart.Bar
implements JSONizable

Class for OFC filled bar chart bars, extends BarChart.Bar

See Also:
BarChart.Bar

Constructor Summary
FilledBarChart.Bar(java.lang.Number top)
          Creates a new bar.
FilledBarChart.Bar(java.lang.Number top, java.lang.Number bottom)
          Creates a new bar.
FilledBarChart.Bar(java.lang.Number top, java.lang.Number bottom, java.lang.String colour, java.lang.String outlineColour)
          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.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.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

FilledBarChart.Bar

public FilledBarChart.Bar(java.lang.Number top)
Creates a new bar.

Parameters:
top - the top

FilledBarChart.Bar

public FilledBarChart.Bar(java.lang.Number top,
                          java.lang.Number bottom)
Creates a new bar.

Parameters:
top - the top
bottom - the bottom

FilledBarChart.Bar

public FilledBarChart.Bar(java.lang.Number top,
                          java.lang.Number bottom,
                          java.lang.String colour,
                          java.lang.String outlineColour)
Creates a new bar.

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