|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jCharts.axisChart.axis.Axis
|
+--org.jCharts.axisChart.axis.XAxis
| Field Summary | |
private boolean |
startTicksAtAxis
|
private int |
xLabelFilter
|
| Fields inherited from class org.jCharts.axisChart.axis.Axis |
|
| Constructor Summary | |
XAxis(AxisChart axisChart,
int numberOfScaleItems)
|
|
| Method Summary | |
float |
computeAxisCoordinate(float origin,
double value,
double axisMinValue)
Takes a value and determines the screen coordinate it should be drawn at. |
void |
computeLabelFilter()
Method to compute the filter to use on the x-axis label display so labels do not overlap |
void |
computeMinimumHeightNeeded(java.lang.String axisTitle)
Computes the minimum pixel height required for the X-Axis. |
void |
computeScalePixelWidth()
Computes the number of pixels between each value on the axis. |
void |
computeShouldTickStartAtYAxis(IAxisDataSeries iAxisDataSeries,
AxisTypeProperties axisTypeProperties)
Determines if we should start x-axis ticks at the y-axis or space it out a half a scale item width. |
void |
computeTickStart()
Computes the screen pixel location of the first tick mark |
void |
render(java.awt.Graphics2D graphics2D,
AxisProperties axisProperties,
java.lang.String axisTitle)
Renders the YAxis on the passes Graphics2D object |
private void |
renderAxisTitle(java.lang.String axisTitle,
java.awt.Graphics2D graphics2D,
AxisTypeProperties axisTypeProperties)
Computes the number of pixels between each value on the axis. |
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int xLabelFilter
private boolean startTicksAtAxis
| Constructor Detail |
public XAxis(AxisChart axisChart,
int numberOfScaleItems)
axisChart - numberOfScaleItems - | Method Detail |
public void computeMinimumHeightNeeded(java.lang.String axisTitle)
axisTitle -
private void renderAxisTitle(java.lang.String axisTitle,
java.awt.Graphics2D graphics2D,
AxisTypeProperties axisTypeProperties)
axisTitle - graphics2D - axisTypeProperties -
public void computeShouldTickStartAtYAxis(IAxisDataSeries iAxisDataSeries,
AxisTypeProperties axisTypeProperties)
iAxisDataSeries - axisTypeProperties - public void computeTickStart()
public void computeScalePixelWidth()
computeScalePixelWidth in class Axis
public void render(java.awt.Graphics2D graphics2D,
AxisProperties axisProperties,
java.lang.String axisTitle)
graphics2D - axisProperties - axisTitle - public void computeLabelFilter()
public void toHTML(HTMLGenerator htmlGenerator)
toHTML in interface HTMLTestabletoHTML in class AxishtmlGenerator -
public float computeAxisCoordinate(float origin,
double value,
double axisMinValue)
origin - value - axisMinValue - the minimum value on the axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||