com.rednels.ofcgwt.client.model.axis
Class XAxis

java.lang.Object
  extended by com.rednels.ofcgwt.client.model.axis.AbstractAxis
      extended by com.rednels.ofcgwt.client.model.axis.XAxis
All Implemented Interfaces:
JSONizable

public class XAxis
extends AbstractAxis
implements JSONizable

Class for an OFC x-axis that extends AbstractAxis

See Also:
AbstractAxis

Nested Class Summary
 class XAxis.Labels
          Class for an OFC x-axis label that extends Label
 
Constructor Summary
XAxis()
           
 
Method Summary
 void addLabels(Label... labels)
          Adds the labels.
 void addLabels(java.util.List<Label> labels)
          Adds the labels.
 void addLabels(java.lang.String... labels)
          Adds the labels.
 com.google.gwt.json.client.JSONValue buildJSON()
          Build (and return) a JSONObject that contains all the items of this object.
 XAxis.Labels getLabels()
          Gets the labels.
 java.lang.Integer getTickHeight()
          Gets the tick height.
 void setLabels(java.util.List<java.lang.String> labels)
          Sets the labels.
 void setLabels(java.lang.String... labels)
          Sets the labels.
 void setTickHeight(java.lang.Integer tick_height)
          Sets the tick height.
 void setXAxisLabels(XAxis.Labels labels)
          Sets the x axis labels.
 
Methods inherited from class com.rednels.ofcgwt.client.model.axis.AbstractAxis
getColour, getGridColour, getMax, getMin, getOffset, getSteps, getStroke, getZDepth3D, setColour, setGridColour, setMax, setMin, setOffset, setRange, setRange, setSteps, setStroke, setZDepth3D
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAxis

public XAxis()
Method Detail

addLabels

public void addLabels(Label... labels)
Adds the labels.

Parameters:
labels - the labels

addLabels

public void addLabels(java.util.List<Label> labels)
Adds the labels.

Parameters:
labels - the labels

addLabels

public void addLabels(java.lang.String... labels)
Adds the labels.

Parameters:
labels - the labels

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

getLabels

public XAxis.Labels getLabels()
Gets the labels.

Returns:
the labels

getTickHeight

public java.lang.Integer getTickHeight()
Gets the tick height.

Returns:
the tick height

setLabels

public void setLabels(java.util.List<java.lang.String> labels)
Sets the labels.

Parameters:
labels - the new labels

setLabels

public void setLabels(java.lang.String... labels)
Sets the labels.

Parameters:
labels - the new labels

setTickHeight

public void setTickHeight(java.lang.Integer tick_height)
Sets the tick height.

Parameters:
tick_height - the new tick height

setXAxisLabels

public void setXAxisLabels(XAxis.Labels labels)
Sets the x axis labels.

Parameters:
labels - the new x axis labels