public class CanvasHistogramLong extends AbstractNumericalCoorChartCanvasLong
Constructor and Description |
---|
CanvasHistogramLong(java.lang.String canvasName,
int canvasHeight,
int canvasWidth,
ChartDataHistogramLong textHistData,
java.lang.String xText)
Create a Canvas for TextHistogram.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getDataValue(int index)
Returns the value of the data at a specified index.
|
long |
getNumOfXScale()
Returns the number of scales to be shown on the x-axis.
|
java.lang.Long |
getStartXScale()
Returns the value for the first scale on the x-axis (the scale most left of the chart).
|
java.lang.String |
getText(int index)
Returns the observed text at the given index.
|
java.lang.String |
getXAxisTitle()
Returns the title for the x-axis.
|
java.lang.Long |
getXScale()
Returns the difference between each scale on the x-axis.
|
java.lang.String |
getYAxisTitle()
Returns the title for the y-axis.
|
getDataColor, getNumOfData, getNumOfYScale, getYScale
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, getRightGap, getScaleLineColor, getTopGap
getCanvasHeight, getCanvasID, getCanvasWidth, getDefaultColor
public CanvasHistogramLong(java.lang.String canvasName, int canvasHeight, int canvasWidth, ChartDataHistogramLong textHistData, java.lang.String xText)
canvasName
- The name of the canvas.canvasHeight
- The height of the canvas.canvasWidth
- The width of the canvas.data
- The data of the TextHistogram to be displayed in this canvas.data
- Text at the x-axispublic long getNumOfXScale()
CanvasCoordinateChart
public java.lang.Long getXScale()
CanvasCoordinateChart
public java.lang.Long getStartXScale()
CanvasCoordinateChart
public java.lang.String getXAxisTitle()
CanvasCoordinateChart
public java.lang.String getYAxisTitle()
CanvasCoordinateChart
public java.lang.Long getDataValue(int index)
index
- The index of the data.public java.lang.String getText(int index)
index
- int : The index of the String asked for