public final class YAxis extends Axis implements HTMLTestable
Modifier and Type | Field and Description |
---|---|
private float |
lastTickY |
Constructor and Description |
---|
YAxis(AxisChart axisChart,
int numberOfScaleItems)
Constructor
|
Modifier and Type | Method and Description |
---|---|
float |
computeAxisCoordinate(float origin,
double value,
double axisMinValue)
Takes a value and determines the screen coordinate it should be drawn at.
|
void |
computeMinimumWidthNeeded(java.lang.String yAxisTitle)
Computes the minimum pixel width required for the Y-Axis.
|
float |
getLastTickY()
Need this value as horizontal plots start from the top of the axis and go down
|
void |
render(java.awt.Graphics2D graphics2D,
AxisProperties axisProperties,
java.lang.String yAxisTitle)
Renders the YAxis on the passes Graphics2D object
|
private void |
renderAxisTitle(java.lang.String axisTitle,
java.awt.Graphics2D graphics2D,
AxisTypeProperties axisTypeProperties) |
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object.
|
computeAxisTitleDimensions, computeOneUnitPixelSize, computeScalePixelWidth, computeScalePixelWidthDataAxis, getAxisChart, getAxisLabelsGroup, getMinimumHeightNeeded, getMinimumWidthNeeded, getNumberOfScaleItems, getOneUnitPixelSize, getOrigin, getPixelLength, getScaleCalculator, getScalePixelWidth, getTickStart, getTitleHeight, getTitleWidth, getZeroLineCoordinate, setAxisLabelsGroup, setMinimumHeightNeeded, setMinimumWidthNeeded, setOneUnitPixelSize, setOrigin, setPixelLength, setScaleCalculator, setScalePixelWidth, setTickStart, setZeroLineCoordinate
public YAxis(AxisChart axisChart, int numberOfScaleItems)
axisChart
- public float getLastTickY()
public void computeMinimumWidthNeeded(java.lang.String yAxisTitle)
private void renderAxisTitle(java.lang.String axisTitle, java.awt.Graphics2D graphics2D, AxisTypeProperties axisTypeProperties)
axisTitle
- graphics2D
- axisTypeProperties
- public void render(java.awt.Graphics2D graphics2D, AxisProperties axisProperties, java.lang.String yAxisTitle)
graphics2D
- axisProperties
- yAxisTitle
- public float computeAxisCoordinate(float origin, double value, double axisMinValue)
origin
- value
- axisMinValue
- the minimum value on the axispublic void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
toHTML
in class Axis
htmlGenerator
-