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

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

public static class HorizontalBarChart.Bar
extends java.lang.Object
implements JSONizable

Base class for OFC horizontal bar chart bars


Constructor Summary
HorizontalBarChart.Bar(java.lang.Number right)
          Creates a new bar.
HorizontalBarChart.Bar(java.lang.Number left, java.lang.Number right)
          Creates a new bar.
HorizontalBarChart.Bar(java.lang.Number left, java.lang.Number right, java.lang.String colour)
          Creates a new bar.
HorizontalBarChart.Bar(java.lang.Number right, java.lang.String colour)
          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 getColour()
          Gets the colour.
 java.lang.Number getLeft()
          Gets the left.
 java.lang.Number getRight()
          Gets the right.
 java.lang.String getTooltip()
          Gets the tooltip.
 void setColour(java.lang.String colour)
          Sets the colour in HTML hex format (#ffffff)
 void setLeft(java.lang.Number left)
          Sets the left.
 void setRight(java.lang.Number right)
          Sets the right.
 void setTooltip(java.lang.String tooltip)
          Sets the tooltip.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HorizontalBarChart.Bar

public HorizontalBarChart.Bar(java.lang.Number right)
Creates a new bar.

Parameters:
right - the right

HorizontalBarChart.Bar

public HorizontalBarChart.Bar(java.lang.Number left,
                              java.lang.Number right)
Creates a new bar.

Parameters:
left - the left
right - the right

HorizontalBarChart.Bar

public HorizontalBarChart.Bar(java.lang.Number left,
                              java.lang.Number right,
                              java.lang.String colour)
Creates a new bar.

Parameters:
left - the left
right - the right
colour - the colour

HorizontalBarChart.Bar

public HorizontalBarChart.Bar(java.lang.Number right,
                              java.lang.String colour)
Creates a new bar.

Parameters:
right - the right
colour - the 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
Returns:
the JSONObject

getColour

public java.lang.String getColour()
Gets the colour.

Returns:
the colour

getLeft

public java.lang.Number getLeft()
Gets the left.

Returns:
the left

getRight

public java.lang.Number getRight()
Gets the right.

Returns:
the right

getTooltip

public java.lang.String getTooltip()
Gets the tooltip.

Returns:
the tooltip

setColour

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

Parameters:
colour - the new colour

setLeft

public void setLeft(java.lang.Number left)
Sets the left.

Parameters:
left - the new left

setRight

public void setRight(java.lang.Number right)
Sets the right.

Parameters:
right - the new right

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets the tooltip.

Parameters:
tooltip - the new tooltip