public abstract class AbstractNumericalChartCanvas<N extends java.lang.Number> extends NamedObject implements CanvasCoordinateChart<N>
Constructor and Description |
---|
AbstractNumericalChartCanvas(java.lang.String canvasID,
int canvasHeight,
int canvasWidth)
Create a canvas.
|
Modifier and Type | Method and Description |
---|---|
int |
getBottomGap()
Returns the gap between the bottom border of the canvas and the chart.
|
int |
getCanvasHeight()
Gets the height of the canvas.
|
java.lang.String |
getCanvasID()
Returns the ID of the canvas.
|
int |
getCanvasWidth()
Gets the width of the canvas.
|
int |
getChartHeight()
Returns the height of the chart area.
|
int |
getChartWidth()
Returns the width of the chart area.
|
java.awt.Color |
getDefaultColor()
Returns the color for the canvas border and the axis.
|
int |
getLeftGap()
Returns the gap between the left border of the canvas and the chart.
|
int |
getRightGap()
Returns the gap between the right border of the canvas and the chart.
|
java.awt.Color |
getScaleLineColor()
Returns the color for the scales in the y-axis.
|
int |
getTopGap()
Returns the gap between the top border of the canvas and the chart.
|
getName, getQuotedName, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDataColor, getNumOfData, getNumOfXScale, getNumOfYScale, getStartXScale, getXAxisTitle, getXScale, getYAxisTitle, getYScale
public AbstractNumericalChartCanvas(java.lang.String canvasID, int canvasHeight, int canvasWidth)
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 int getCanvasHeight()
getCanvasHeight
in interface Canvas
public int getCanvasWidth()
getCanvasWidth
in interface Canvas
public java.lang.String getCanvasID()
Canvas
getCanvasID
in interface Canvas
public int getChartHeight()
CanvasCoordinateChart
getChartHeight
in interface CanvasCoordinateChart<N extends java.lang.Number>
public int getChartWidth()
CanvasCoordinateChart
getChartWidth
in interface CanvasCoordinateChart<N extends java.lang.Number>
public java.awt.Color getDefaultColor()
getDefaultColor
in interface Canvas
public java.awt.Color getScaleLineColor()
getScaleLineColor
in interface CanvasCoordinateChart<N extends java.lang.Number>
public int getTopGap()
getTopGap
in interface CanvasCoordinateChart<N extends java.lang.Number>
public int getRightGap()
getRightGap
in interface CanvasCoordinateChart<N extends java.lang.Number>
public int getBottomGap()
getBottomGap
in interface CanvasCoordinateChart<N extends java.lang.Number>
public int getLeftGap()
getLeftGap
in interface CanvasCoordinateChart<N extends java.lang.Number>