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

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

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

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

See Also:
BarChart.Bar

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

CylinderBarChart.Bar

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

Parameters:
top - the top

CylinderBarChart.Bar

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

Parameters:
top - the top
bottom - the bottom

CylinderBarChart.Bar

public CylinderBarChart.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