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

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

public class YAxis
extends AbstractAxis
implements JSONizable

Class for an OFC y-axis that extends AbstractAxis

See Also:
AbstractAxis

Constructor Summary
YAxis()
           
 
Method Summary
 void addLabels(java.util.List<java.lang.String> 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.
 java.util.List<java.lang.String> getLabels()
          Gets the labels.
 java.lang.Integer getTickLength()
          Gets the tick length.
 void setLabels(java.util.List<java.lang.String> labels)
          Sets the labels.
 void setLabels(java.lang.String... labels)
          Sets the labels.
 void setTickLength(java.lang.Integer tick_length)
          Sets the tick length.
 
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

YAxis

public YAxis()
Method Detail

addLabels

public void addLabels(java.util.List<java.lang.String> 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 java.util.List<java.lang.String> getLabels()
Gets the labels.

Returns:
the labels

getTickLength

public java.lang.Integer getTickLength()
Gets the tick length.

Returns:
the tick length

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

setTickLength

public void setTickLength(java.lang.Integer tick_length)
Sets the tick length.

Parameters:
tick_length - the new tick length