public class CanvasTimeSeries extends AbstractNumericalChartCanvas<java.lang.Double>
Constructor and Description |
---|
CanvasTimeSeries(java.lang.String name,
int canvasHeight,
int canvasWidth,
ChartDataTimeSeries timeSeriesData,
java.lang.String axis_x,
java.lang.String axis_y) |
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
addTimeSeries(ChartDataTimeSeries timeSeries)
Add a chart data of a TimeSeries to this canvas.
|
java.awt.Color |
getDataColor(int i)
Returns the color, that represents the TimeSEries at index i.
|
java.lang.Double[] |
getDataValues(int i)
Returns the data value of the TimeSeriesData at index i.
|
int |
getNumOfData()
Returns the number of TimeSeries displayed by this canvas.
|
int |
getNumOfTimeSeries() |
long |
getNumOfXScale()
Returns the number of scales to be shown on the x-axis.
|
long |
getNumOfYScale()
Returns the number of scales to be shown on the y-axis.
|
java.lang.Double |
getStartXScale()
Returns the number for the first xScale.
|
java.lang.Double[] |
getTimeValues(int i)
Returns the time value of the TimeSeriesData at index i.
|
java.lang.String |
getXAxisTitle()
Returns the title for the x-axis.
|
java.lang.Double |
getXScale()
Returns the difference between each scale on the x-axis.
|
java.lang.String |
getYAxisTitle()
Returns the title for the y-axis.
|
java.lang.Double |
getYScale()
Returns the difference between each scale on the y-axis.
|
getBottomGap, getCanvasHeight, getCanvasID, getCanvasWidth, getChartHeight, getChartWidth, getDefaultColor, getLeftGap, getRightGap, getScaleLineColor, getTopGap
getName, getQuotedName, toString
public CanvasTimeSeries(java.lang.String name, int canvasHeight, int canvasWidth, ChartDataTimeSeries timeSeriesData, java.lang.String axis_x, java.lang.String axis_y)
public java.awt.Color addTimeSeries(ChartDataTimeSeries timeSeries)
timeSeries
- ChartDataTimeSeries: the chart data of a TimeSeries to be added to this canvaspublic java.awt.Color getDataColor(int i)
i
- public long getNumOfYScale()
public java.lang.Double getYScale()
public long getNumOfXScale()
public java.lang.Double getXScale()
public java.lang.Double getStartXScale()
public int getNumOfTimeSeries()
public java.lang.Double[] getDataValues(int i)
i
- public java.lang.Double[] getTimeValues(int i)
i
- public int getNumOfData()
public java.lang.String getXAxisTitle()
CanvasCoordinateChart
public java.lang.String getYAxisTitle()
CanvasCoordinateChart