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

java.lang.Object
  extended by com.rednels.ofcgwt.client.model.axis.AbstractAxis
All Implemented Interfaces:
JSONizable
Direct Known Subclasses:
RadarAxis, XAxis, YAxis

public abstract class AbstractAxis
extends java.lang.Object
implements JSONizable

Base abstract class for an OFC axis


Constructor Summary
AbstractAxis()
           
 
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.String getGridColour()
          Gets the grid colour.
 java.lang.Number getMax()
          Gets the max.
 java.lang.Number getMin()
          Gets the min.
 java.lang.Integer getOffset()
          Gets the offset.
 java.lang.Number getSteps()
          Gets the steps.
 java.lang.Integer getStroke()
          Gets the stroke.
 java.lang.Integer getZDepth3D()
          Gets the z-depth (3D).
 void setColour(java.lang.String colour)
          Sets the colour in HTML hex format (#ffffff)
 void setGridColour(java.lang.String grid_colour)
          Sets the grid colour in HTML hex format (#ffffff)
 void setMax(java.lang.Number max)
          Sets the max.
 void setMin(java.lang.Number min)
          Sets the min.
 void setOffset(java.lang.Boolean offset)
          Sets the offset.
 void setRange(java.lang.Number min, java.lang.Number max)
          Sets the range.
 void setRange(java.lang.Number min, java.lang.Number max, java.lang.Number step)
          Sets the range.
 void setSteps(java.lang.Number steps)
          Sets the steps.
 void setStroke(java.lang.Integer stroke)
          Sets the stroke.
 void setZDepth3D(java.lang.Integer zdepth3d)
          Sets the z-depth (3D).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAxis

public AbstractAxis()
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

getGridColour

public java.lang.String getGridColour()
Gets the grid colour.

Returns:
the grid colour

getMax

public java.lang.Number getMax()
Gets the max.

Returns:
the max

getMin

public java.lang.Number getMin()
Gets the min.

Returns:
the min

getOffset

public java.lang.Integer getOffset()
Gets the offset.

Returns:
the offset

getSteps

public java.lang.Number getSteps()
Gets the steps.

Returns:
the steps

getStroke

public java.lang.Integer getStroke()
Gets the stroke.

Returns:
the stroke

getZDepth3D

public java.lang.Integer getZDepth3D()
Gets the z-depth (3D).

Returns:
the zdepth3d

setColour

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

Parameters:
colour - the new colour

setGridColour

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

Parameters:
grid_colour - the new grid colour

setMax

public void setMax(java.lang.Number max)
Sets the max.

Parameters:
max - the new max

setMin

public void setMin(java.lang.Number min)
Sets the min.

Parameters:
min - the new min

setOffset

public void setOffset(java.lang.Boolean offset)
Sets the offset.

Parameters:
offset - the new offset

setRange

public void setRange(java.lang.Number min,
                     java.lang.Number max)
Sets the range.

Parameters:
min - the min
max - the max

setRange

public void setRange(java.lang.Number min,
                     java.lang.Number max,
                     java.lang.Number step)
Sets the range.

Parameters:
min - the min
max - the max
step - the step

setSteps

public void setSteps(java.lang.Number steps)
Sets the steps.

Parameters:
steps - the new steps

setStroke

public void setStroke(java.lang.Integer stroke)
Sets the stroke.

Parameters:
stroke - the new stroke

setZDepth3D

public void setZDepth3D(java.lang.Integer zdepth3d)
Sets the z-depth (3D).

Parameters:
zdepth3d - the new zdepth3d