com.sencha.gxt.chart.client.chart.axis
Class RadialAxis<M,V>

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

public class RadialAxis<M,V>
extends Axis<M,V>

Axis to be used with RadarSeries.


Nested Class Summary
static class RadialAxis.Display
          Enumeration of the display style of the radial axis.
 
Constructor Summary
RadialAxis()
          Creates a radial Axis.
 
Method Summary
 void delete()
          Removes all the sprites of the axis from the surface.
 void drawAxis(boolean init)
          Renders the axis into the screen and updates it's position.
 void drawLabels()
          Renders the labels in the axes.
 ValueProvider<M,V> getCategoryField()
          Returns the ValueProvider used for labels around the axis.
 CircleSprite getCircleConfig()
          Returns the configuration for the circles on the axis.
 RadialAxis.Display getDisplay()
          Returns the RadialAxis.Display style of the axis.
 Chart.Position getPosition()
          Returns the Chart.Position of the axis.
 TextSprite getScaleConfig()
          Returns the configuration for labels on the numeric scale.
 LabelProvider<Number> getScaleLabelProvider()
          Returns the LabelProvider used to display labels on the scale.
 void setCategoryField(ValueProvider<M,V> categoryField)
          Sets the ValueProvider used to get the values for the category labels.
 void setCircleConfig(CircleSprite circleConfig)
          Sets the configuration for the circles on the axis.
 void setDisplay(RadialAxis.Display display)
          Sets the RadialAxis.Display style of the axis.
 void setScaleConfig(TextSprite scaleConfig)
          Sets the configuration for labels on the numeric scale.
 void setScaleLabelProvider(LabelProvider<Number> scaleLabelProvider)
          Sets the LabelProvider used to display labels on the scale.
 
Methods inherited from class com.sencha.gxt.chart.client.chart.axis.Axis
addAxisHandler, addAxisItemOutHandler, addAxisItemOverHandler, addAxisSelectionHandler, 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

RadialAxis

public RadialAxis()
Creates a radial Axis.

Method Detail

delete

public void delete()
Description copied from class: Axis
Removes all the sprites of the axis from the surface.

Overrides:
delete in class Axis<M,V>

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,V>
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,V>

getCategoryField

public ValueProvider<M,V> getCategoryField()
Returns the ValueProvider used for labels around the axis.

Returns:
the value provider used for labels around the axis

getCircleConfig

public CircleSprite getCircleConfig()
Returns the configuration for the circles on the axis.

Returns:
the configuration for the circles on the axis

getDisplay

public RadialAxis.Display getDisplay()
Returns the RadialAxis.Display style of the axis.

Returns:
the display style of 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,V>
Returns:
the position of the axis

getScaleConfig

public TextSprite getScaleConfig()
Returns the configuration for labels on the numeric scale.

Returns:
the configuration for labels on the numeric scale

getScaleLabelProvider

public LabelProvider<Number> getScaleLabelProvider()
Returns the LabelProvider used to display labels on the scale.

Returns:
the label provider used to display labels on the scale

setCategoryField

public void setCategoryField(ValueProvider<M,V> categoryField)
Sets the ValueProvider used to get the values for the category labels.

Parameters:
categoryField - the value provider used to get the values for the category labels

setCircleConfig

public void setCircleConfig(CircleSprite circleConfig)
Sets the configuration for the circles on the axis.

Parameters:
circleConfig - the configuration for the circles on the axis

setDisplay

public void setDisplay(RadialAxis.Display display)
Sets the RadialAxis.Display style of the axis.

Parameters:
display - the display style of the axis

setScaleConfig

public void setScaleConfig(TextSprite scaleConfig)
Sets the configuration for labels on the numeric scale.

Parameters:
scaleConfig - the configuration for labels on the numeric scale

setScaleLabelProvider

public void setScaleLabelProvider(LabelProvider<Number> scaleLabelProvider)
Sets the LabelProvider used to display labels on the scale.

Parameters:
scaleLabelProvider - the label provider used to display labels on the scale


Copyright © 2011. All Rights Reserved.