| java.lang.Object org.krysalis.jcharts.axisChart.axis.Axis org.krysalis.jcharts.axisChart.axis.YAxis
YAxis | public class YAxis extends Axis implements HTMLTestable(Code) | | author: Nathaniel Auvil, John Thomson version: $Id: YAxis.java,v 1.5 2004/05/31 16:29:47 nathaniel_auvil Exp $ |
Constructor Summary | |
public | YAxis(AxisChart axisChart, int numberOfScaleItems) |
YAxis | public YAxis(AxisChart axisChart, int numberOfScaleItems)(Code) | | Constructor
Parameters: axisChart - |
computeAxisCoordinate | public float computeAxisCoordinate(float origin, double value, double axisMinValue)(Code) | | Takes a value and determines the screen coordinate it should be drawn at. THe only difference
between this and the x-axis is we subtract to the origin versus subtract from it.
Parameters: origin - Parameters: value - Parameters: axisMinValue - the minimum value on the axis float the screen pixel coordinate |
computeMinimumWidthNeeded | public void computeMinimumWidthNeeded(String yAxisTitle)(Code) | | Computes the minimum pixel width required for the Y-Axis.
Includes space, if needed, for: axis title + padding, axis values + tick padding, and tick marks.
|
getLastTickY | public float getLastTickY()(Code) | | Need this value as horizontal plots start from the top of the axis and go down
float |
render | public void render(Graphics2D graphics2D, AxisProperties axisProperties, String yAxisTitle)(Code) | | Renders the YAxis on the passes Graphics2D object
Parameters: graphics2D - Parameters: axisProperties - Parameters: yAxisTitle - |
toHTML | public void toHTML(HTMLGenerator htmlGenerator)(Code) | | Enables the testing routines to display the contents of this Object.
Parameters: htmlGenerator - |
|
|