public abstract class AbstractNumericalCoorChartCanvas<N extends java.lang.Number> extends AbstractNumericalChartCanvas<N> implements CanvasCoordinateChart<N>
Constructor and Description |
---|
AbstractNumericalCoorChartCanvas(java.lang.String canvasID,
int canvasHeight,
int canvasWidth,
AbstractChartData<N> data)
Create a canvas.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getDataColor(int index)
Returns the color, that represents the data in cell n.
|
int |
getNumOfData()
Returns the number of data.
|
long |
getNumOfYScale()
Returns the number of scales to be shown on the y-axis.
|
N |
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBottomGap, getChartHeight, getChartWidth, getLeftGap, getNumOfXScale, getRightGap, getScaleLineColor, getStartXScale, getTopGap, getXAxisTitle, getXScale, getYAxisTitle
getCanvasHeight, getCanvasID, getCanvasWidth, getDefaultColor
public AbstractNumericalCoorChartCanvas(java.lang.String canvasID, int canvasHeight, int canvasWidth, AbstractChartData<N> data)
canvasID
- The ID of this canvas.canvasHeight
- The height of this canvas.this.getTopGap() + this.getBottomGap() + 100
.canvasWidth
- The width of this canvas.this.getLeftGap() + this.getRightGap() + 100
.public java.awt.Color getDataColor(int index)
getDataColor
in interface CanvasCoordinateChart<N extends java.lang.Number>
index
- the index of the data, which color is asked forpublic int getNumOfData()
CanvasCoordinateChart
getNumOfData
in interface CanvasCoordinateChart<N extends java.lang.Number>
public long getNumOfYScale()
getNumOfYScale
in interface CanvasCoordinateChart<N extends java.lang.Number>
public N getYScale()
getYScale
in interface CanvasCoordinateChart<N extends java.lang.Number>