com.rednels.ofcgwt.client.model.elements
Class StackedBarChart.StackValue

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

public static class StackedBarChart.StackValue
extends java.lang.Object
implements JSONizable

Base class for OFC stack bar chart values


Constructor Summary
StackedBarChart.StackValue(java.lang.Number value)
          Creates a new stack value.
StackedBarChart.StackValue(java.lang.Number value, java.lang.String colour)
          Creates a new stack value.
 
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 getValue()
          Gets the value.
 void setColour(java.lang.String colour)
          Sets the colour in HTML hex format (#ffffff)
 void setValue(java.lang.Number val)
          Sets the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackedBarChart.StackValue

public StackedBarChart.StackValue(java.lang.Number value)
Creates a new stack value.

Parameters:
value - the value

StackedBarChart.StackValue

public StackedBarChart.StackValue(java.lang.Number value,
                                  java.lang.String colour)
Creates a new stack value.

Parameters:
value - the value
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

getValue

public java.lang.Number getValue()
Gets the value.

Returns:
the value

setColour

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

Parameters:
colour - the new colour

setValue

public void setValue(java.lang.Number val)
Sets the value.

Parameters:
val - the new value