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

java.lang.Object
  extended by com.rednels.ofcgwt.client.model.elements.Element
      extended by com.rednels.ofcgwt.client.model.elements.LineChart
All Implemented Interfaces:
JSONizable
Direct Known Subclasses:
AreaChart

public class LineChart
extends Element
implements JSONizable

Class for an OFC line chart that extends Element

See Also:
Element

Nested Class Summary
static class LineChart.Dot
          Base class for OFC line dots
static class LineChart.LineStyle
          Enumeration LineStyle - used with LineChart.
 
Constructor Summary
LineChart()
          Creates a new line chart with normal style.
LineChart(LineChart.LineStyle style)
          Creates a new line chart.
 
Method Summary
 void addDots(LineChart.Dot... dots)
          Adds the dots.
 void addDots(java.util.List<LineChart.Dot> dots)
          Adds the dots.
 void addValues(java.util.List<java.lang.Number> values)
          Adds the values.
 void addValues(java.lang.Number... values)
          Adds the values.
 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.Integer getDotSize()
          Gets the dot size.
 java.lang.Integer getHaloSize()
          Gets the halo size.
 boolean getRightAxis()
           
 java.lang.Integer getWidth()
          Gets the width.
 void setColour(java.lang.String colour)
          Sets the colour.
 void setDotSize(java.lang.Integer dotSize)
          Sets the dot size.
 void setHaloSize(java.lang.Integer haloSize)
          Sets the halo size.
 void setRightAxis(boolean rightAxis)
           
 void setWidth(java.lang.Integer width)
          Sets the width.
 
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

LineChart

public LineChart()
Creates a new line chart with normal style.


LineChart

public LineChart(LineChart.LineStyle style)
Creates a new line chart.

Parameters:
style - the style
Method Detail

addDots

public void addDots(LineChart.Dot... dots)
Adds the dots.

Parameters:
dots - the dots

addDots

public void addDots(java.util.List<LineChart.Dot> dots)
Adds the dots.

Parameters:
dots - the dots

addValues

public void addValues(java.util.List<java.lang.Number> values)
Adds the values.

Parameters:
values - the values

addValues

public void addValues(java.lang.Number... values)
Adds the values.

Parameters:
values - the values

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 Element
Returns:
the JSONObject

getColour

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

Returns:
the colour

getDotSize

public java.lang.Integer getDotSize()
Gets the dot size.

Returns:
the dot size

getHaloSize

public java.lang.Integer getHaloSize()
Gets the halo size.

Returns:
the halo size

getRightAxis

public boolean getRightAxis()

getWidth

public java.lang.Integer getWidth()
Gets the width.

Returns:
the width

setColour

public void setColour(java.lang.String colour)
Sets the colour.

Parameters:
colour - the new colour

setDotSize

public void setDotSize(java.lang.Integer dotSize)
Sets the dot size.

Parameters:
dotSize - the new dot size

setHaloSize

public void setHaloSize(java.lang.Integer haloSize)
Sets the halo size.

Parameters:
haloSize - the new halo size

setRightAxis

public void setRightAxis(boolean rightAxis)

setWidth

public void setWidth(java.lang.Integer width)
Sets the width.

Parameters:
width - the new width