|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.util.graph.YAxisScale
public class YAxisScale
A scale to go along the y axis of a graph.
Version 1.0, 4/20/99 - original version.
Constructor Summary | |
---|---|
YAxisScale(java.awt.Font f,
java.awt.FontMetrics fmet)
|
Method Summary | |
---|---|
void |
drawMajorTic(java.awt.Graphics g,
java.awt.Rectangle r,
double y)
Draw a major tic at a given y position. |
void |
drawMinorTic(java.awt.Graphics g,
java.awt.Rectangle r,
double y)
Draw a minor tic at a given y 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 YAxisScale(java.awt.Font f, java.awt.FontMetrics fmet)
Method Detail |
---|
public void setFlipped(boolean fl)
setFlipped
in interface AxisScale
public void setMajorTics(int n)
public void setMajorTicsOn(double n)
public void setMinorTics(int n)
public void setMin(double x)
setMin
in interface AxisScale
public void setMax(double x)
setMax
in interface AxisScale
public void setFormat(java.lang.String x)
setFormat
in interface AxisScale
public void setFont(java.awt.Font f, java.awt.FontMetrics fmet)
setFont
in interface AxisScale
public int getParallelSpace()
getParallelSpace
in interface AxisScale
public int getPerpendicularSpace()
getPerpendicularSpace
in interface AxisScale
public void drawMajorTic(java.awt.Graphics g, java.awt.Rectangle r, double y)
public void drawMinorTic(java.awt.Graphics g, java.awt.Rectangle r, double y)
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 |