com.sencha.gxt.chart.client.chart.axis
Class GaugeAxis<M>

java.lang.Object
  extended by com.sencha.gxt.chart.client.chart.axis.Axis<M,Number>
      extended by com.sencha.gxt.chart.client.chart.axis.GaugeAxis<M>
Type Parameters:
M - the data type of the axis
All Implemented Interfaces:
AxisHandler.HasAxisHandlers, AxisItemOutEvent.HasAxisItemOutHandlers, AxisItemOverEvent.HasAxisItemOverHandlers, AxisSelectionEvent.HasAxisSelectionHandlers

public class GaugeAxis<M>
extends Axis<M,Number>

Axis to be used with GaugeSeries.


Constructor Summary
GaugeAxis()
          Creates a gauge Axis.
 
Method Summary
 void drawAxis(boolean init)
          Renders the axis into the screen and updates it's position.
 void drawLabels()
          Renders the labels in the axes.
 double getMargin()
          Returns the margins of the axis.
 double getMaximum()
          Returns the maximum value displayed on the axis.
 double getMinimum()
          Returns the minimum value displayed on the axis.
 Chart.Position getPosition()
          Returns the Chart.Position of the axis.
 void setMargin(double margin)
          Sets the margins of the axis.
 void setMaximum(double maximum)
          Sets the maximum value displayed on the axis.
 void setMinimum(double minimum)
          Sets the minimum value displayed on the axis
 
Methods inherited from class com.sencha.gxt.chart.client.chart.axis.Axis
addAxisHandler, addAxisItemOutHandler, addAxisItemOverHandler, addAxisSelectionHandler, delete, getAxisConfig, getBBox, getChart, getFrom, getLabelConfig, getLabelProvider, getSteps, getTitleConfig, getTo, getX, getY, isDisplayGrid, isHidden, onMouseDown, onMouseMove, onMouseOut, removeToolTip, setAxisConfig, setChart, setDisplayGrid, setHidden, setLabelConfig, setLabelProvider, setSteps, setTitleConfig, setToolTipConfig, setX, setY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaugeAxis

public GaugeAxis()
Creates a gauge Axis.

Method Detail

drawAxis

public void drawAxis(boolean init)
Description copied from class: Axis
Renders the axis into the screen and updates it's position.

Specified by:
drawAxis in class Axis<M,Number>
Parameters:
init - true if the initial draw call

drawLabels

public void drawLabels()
Description copied from class: Axis
Renders the labels in the axes.

Specified by:
drawLabels in class Axis<M,Number>

getMargin

public double getMargin()
Returns the margins of the axis.

Returns:
the margins of the axis

getMaximum

public double getMaximum()
Returns the maximum value displayed on the axis.

Returns:
the maximum value displayed on the axis

getMinimum

public double getMinimum()
Returns the minimum value displayed on the axis.

Returns:
the minimum value displayed on the axis

getPosition

public Chart.Position getPosition()
Description copied from class: Axis
Returns the Chart.Position of the axis.

Specified by:
getPosition in class Axis<M,Number>
Returns:
the position of the axis

setMargin

public void setMargin(double margin)
Sets the margins of the axis.

Parameters:
margin - the margins of the axis

setMaximum

public void setMaximum(double maximum)
Sets the maximum value displayed on the axis.

Parameters:
maximum - the maximum value displayed on the axis

setMinimum

public void setMinimum(double minimum)
Sets the minimum value displayed on the axis

Parameters:
minimum - the minimum value displayed on the axis


Copyright © 2011. All Rights Reserved.