|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jCharts.axisChart.axis.Axis
org.jCharts.axisChart.axis.YAxis
public final class YAxis
| Field Summary | |
|---|---|
private float |
lastTickY
|
| Constructor Summary | |
|---|---|
YAxis(AxisChart axisChart,
int numberOfScaleItems)
Constructor |
|
| Method Summary | |
|---|---|
float |
computeAxisCoordinate(float origin,
double value,
double axisMinValue)
Takes a value and determines the screen coordinate it should be drawn at. |
void |
computeMinimumWidthNeeded(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(Graphics2D graphics2D,
AxisProperties axisProperties,
String yAxisTitle)
Renders the YAxis on the passes Graphics2D object |
private void |
renderAxisTitle(String axisTitle,
Graphics2D graphics2D,
AxisTypeProperties axisTypeProperties)
|
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 float lastTickY
| Constructor Detail |
|---|
public YAxis(AxisChart axisChart,
int numberOfScaleItems)
axisChart - | Method Detail |
|---|
public float getLastTickY()
public void computeMinimumWidthNeeded(String yAxisTitle)
private void renderAxisTitle(String axisTitle,
Graphics2D graphics2D,
AxisTypeProperties axisTypeProperties)
axisTitle - graphics2D - axisTypeProperties -
public void render(Graphics2D graphics2D,
AxisProperties axisProperties,
String yAxisTitle)
graphics2D - axisProperties - yAxisTitle -
public float computeAxisCoordinate(float origin,
double value,
double axisMinValue)
origin - value - axisMinValue - the minimum value on the axis
public void toHTML(HTMLGenerator htmlGenerator)
toHTML in interface HTMLTestabletoHTML in class AxishtmlGenerator -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||