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

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

public class TimeAxis<M>
extends CategoryAxis<M,Date>

A type of axis whose units are measured in time values. Use this axis for listing dates that you will want to group or dynamically change. If you just want to display dates as categories then use the CategoryAxis for axis instead.


Constructor Summary
TimeAxis()
          Creates a time axis.
 
Method Summary
 Date getEndDate()
          Returns the ending date of the axis.
 Date getStartDate()
          Returns the starting date of the axis.
 void setEndDate(Date endDate)
          Sets the ending date of the axis.
 void setStartDate(Date startDate)
          Sets the starting date of the axis.
 
Methods inherited from class com.sencha.gxt.chart.client.chart.axis.CategoryAxis
getField, setField
 
Methods inherited from class com.sencha.gxt.chart.client.chart.axis.CartesianAxis
delete, drawAxis, drawLabels, getDashSize, getDepth, getGridDefaultConfig, getGridEvenConfig, getGridOddConfig, getHeight, getLabelTolerance, getLength, getMinorTickSteps, getPosition, getTextLabelPadding, getWidth, setDashSize, setDepth, setGridDefaultConfig, setGridEvenConfig, setGridOddConfig, setHeight, setLabelTolerance, setLength, setMinorTickSteps, setPosition, setTextLabelPadding, setWidth
 
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

TimeAxis

public TimeAxis()
Creates a time axis.

Method Detail

getEndDate

public Date getEndDate()
Returns the ending date of the axis.

Returns:
the ending date of the axis

getStartDate

public Date getStartDate()
Returns the starting date of the axis.

Returns:
the starting date of the axis

setEndDate

public void setEndDate(Date endDate)
Sets the ending date of the axis.

Parameters:
endDate - the ending date of the axis

setStartDate

public void setStartDate(Date startDate)
Sets the starting date of the axis.

Parameters:
startDate - the starting date of the axis


Copyright © 2011. All Rights Reserved.