|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.achartengine.chart.AbstractChart
org.achartengine.chart.XYChart
org.achartengine.chart.LineChart
org.achartengine.chart.TimeChart
public class TimeChart
The time chart rendering class.
| Field Summary | |
|---|---|
static long |
DAY
The number of milliseconds in a day. |
static java.lang.String |
TYPE
The constant to identify this chart type. |
| Fields inherited from class org.achartengine.chart.XYChart |
|---|
mDataset, mRenderer |
| Constructor Summary | |
|---|---|
TimeChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Builds a new time chart instance. |
|
| Method Summary | |
|---|---|
protected void |
drawXLabels(java.util.List<java.lang.Double> xLabels,
java.lang.Double[] xTextLabelLocations,
android.graphics.Canvas canvas,
android.graphics.Paint paint,
int left,
int top,
int bottom,
double xPixelsPerUnit,
double minX,
double maxX)
The graphical representation of the labels on the X axis. |
java.lang.String |
getChartType()
Returns the chart type identifier. |
java.lang.String |
getDateFormat()
Returns the date format pattern to be used for formatting the X axis labels. |
void |
setDateFormat(java.lang.String format)
Sets the date format pattern to be used for formatting the X axis labels. |
| Methods inherited from class org.achartengine.chart.LineChart |
|---|
clickableAreasForPoints, drawLegendShape, drawSeries, getLegendShapeWidth, getPointsChart, isRenderPoints, setDatasetRenderer |
| Methods inherited from class org.achartengine.chart.XYChart |
|---|
draw, drawChartValuesText, drawSeries, drawText, drawXTextLabels, getCalcRange, getDataset, getDefaultMinimum, getLabel, getRenderer, getScreenR, getSeriesAndPointForScreenCoordinate, isRenderNullValues, setCalcRange, setScreenR, toRealPoint, toRealPoint, toScreenPoint, toScreenPoint |
| Methods inherited from class org.achartengine.chart.AbstractChart |
|---|
drawBackground, drawLabel, drawLegend, drawPath, getExceed, getLegendSize, isVertical |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TYPE
public static final long DAY
| Constructor Detail |
|---|
public TimeChart(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
dataset - the multiple series datasetrenderer - the multiple series renderer| Method Detail |
|---|
public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String format)
format - the date format pattern for the X axis labels. If null, an
appropriate default format will be used.
protected void drawXLabels(java.util.List<java.lang.Double> xLabels,
java.lang.Double[] xTextLabelLocations,
android.graphics.Canvas canvas,
android.graphics.Paint paint,
int left,
int top,
int bottom,
double xPixelsPerUnit,
double minX,
double maxX)
drawXLabels in class XYChartxLabels - the X labels valuesxTextLabelLocations - the X text label locationscanvas - the canvas to paint topaint - the paint to be used for drawingleft - the left value of the labels areatop - the top value of the labels areabottom - the bottom value of the labels areaxPixelsPerUnit - the amount of pixels per one unit in the chart labelsminX - the minimum value on the X axis in the chartmaxX - the maximum value on the X axis in the chartpublic java.lang.String getChartType()
getChartType in class LineChart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||