|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strbio.util.graph.XAxisScale
public class XAxisScale
A scale to go along the x axis of a graph.
Version 1.0, 4/20/99 - original version.
| Constructor Summary | |
|---|---|
XAxisScale(java.awt.Font f,
java.awt.FontMetrics fmet)
|
|
| Method Summary | |
|---|---|
void |
drawMajorTic(java.awt.Graphics g,
java.awt.Rectangle r,
double x)
Draw a major tic at a given x position. |
void |
drawMinorTic(java.awt.Graphics g,
java.awt.Rectangle r,
double x)
Draw a minor tic at a given x position |
int |
getParallelSpace()
How much space parallel to the axis is required to draw the scale, outside the graph box? |
int |
getPerpendicularSpace()
How much space is required perpendicular to the axis, outside the graph box? |
void |
paintAxisScale(java.awt.Graphics g,
java.awt.Rectangle r)
Draw the axis scale, relative to a given rectangle containing the graph. |
void |
setFlipped(boolean fl)
Flip this axis from normal java orientation (left->right, top->bottom). |
void |
setFont(java.awt.Font f,
java.awt.FontMetrics fmet)
set the font labels will be printed in. |
void |
setFormat(java.lang.String x)
set the format labels will be printed in. |
void |
setMajorTics(int n)
Sets the number of major tics on the axis. |
void |
setMajorTicsOn(double n)
puts major tics everywhere on the axis that's divisible by this number. |
void |
setMax(double x)
set the maximum value that will be graphed. |
void |
setMin(double x)
set the minimum value that will be graphed. |
void |
setMinorTics(int n)
sets the number of minor tics between each major tic. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XAxisScale(java.awt.Font f,
java.awt.FontMetrics fmet)
| Method Detail |
|---|
public void setFlipped(boolean fl)
setFlipped in interface AxisScalepublic void setMajorTics(int n)
public void setMajorTicsOn(double n)
public void setMinorTics(int n)
public void setMin(double x)
setMin in interface AxisScalepublic void setMax(double x)
setMax in interface AxisScalepublic void setFormat(java.lang.String x)
setFormat in interface AxisScale
public void setFont(java.awt.Font f,
java.awt.FontMetrics fmet)
setFont in interface AxisScalepublic int getParallelSpace()
getParallelSpace in interface AxisScalepublic int getPerpendicularSpace()
getPerpendicularSpace in interface AxisScale
public void drawMajorTic(java.awt.Graphics g,
java.awt.Rectangle r,
double x)
public void drawMinorTic(java.awt.Graphics g,
java.awt.Rectangle r,
double x)
public void paintAxisScale(java.awt.Graphics g,
java.awt.Rectangle r)
paintAxisScale in interface AxisScale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||