| java.lang.Object org.krysalis.jcharts.axisChart.axis.Axis org.krysalis.jcharts.axisChart.axis.XAxis
XAxis | public class XAxis extends Axis implements HTMLTestable(Code) | | author: Nathaniel Auvil, John Thomson version: $Id: XAxis.java,v 1.3 2003/06/29 14:14:28 nathaniel_auvil Exp $ |
Constructor Summary | |
public | XAxis(AxisChart axisChart, int numberOfScaleItems) |
XAxis | public XAxis(AxisChart axisChart, int numberOfScaleItems)(Code) | | Parameters: axisChart - Parameters: numberOfScaleItems - |
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 y-axis is we add to the origin versus subtract from it.
Parameters: origin - Parameters: value - Parameters: axisMinValue - the minimum value on the axis float the screen pixel coordinate |
computeLabelFilter | public void computeLabelFilter()(Code) | | Method to compute the filter to use on the x-axis label display so labels do not overlap
|
computeMinimumHeightNeeded | public void computeMinimumHeightNeeded(String axisTitle)(Code) | | Computes the minimum pixel height required for the X-Axis.
Includes space, if needed, for: axis title + padding, axis values + tick padding, and tick marks.
Parameters: axisTitle - |
computeScalePixelWidth | public void computeScalePixelWidth(AxisTypeProperties axisTypeProperties)(Code) | | Computes the number of pixels between each value on the axis.
Parameters: axisTypeProperties - |
computeShouldTickStartAtYAxis | public void computeShouldTickStartAtYAxis(IAxisDataSeries iAxisDataSeries, AxisTypeProperties axisTypeProperties)(Code) | | Determines if we should start x-axis ticks at the y-axis or space it out a half
a scale item width.
Parameters: iAxisDataSeries - Parameters: axisTypeProperties - |
computeTickStart | public void computeTickStart()(Code) | | Computes the screen pixel location of the first tick mark
|
render | public void render(Graphics2D graphics2D, AxisProperties axisProperties, String axisTitle)(Code) | | Renders the YAxis on the passes Graphics2D object
Parameters: graphics2D - Parameters: axisProperties - Parameters: axisTitle - |
toHTML | public void toHTML(HTMLGenerator htmlGenerator)(Code) | | Enables the testing routines to display the contents of this Object.
Parameters: htmlGenerator - |
|
|