|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pentec.adapt.Axes
public class Axes
This class is used by APanel to provide x and y axis controls for ADAPT
| Field Summary | |
|---|---|
private java.lang.String[] |
a$YLabels
The Y labels |
private int[] |
aiYLabelWidth
The width of the Y labels |
private APanel |
apanel
The APanel this set of axes belongs to |
private double |
dHeadXPxWid
Data set sample spacing in axis units |
private double |
dHeadXStart
Axis starting values |
private double |
dHeadYPxWid
Data set sample spacing in axis units |
private double |
dHeadYStart
Axis starting values |
double |
dXHi
Axis endpoints actually used for scaling |
double |
dXLo
Axis endpoints actually used for scaling |
private double |
dXStep
Overlay grid step size |
private double |
dXTicMax
Axis label endpoints |
private double |
dXTicMin
Axis label endpoints |
double |
dYHi
Axis endpoints actually used for scaling |
double |
dYLo
Axis endpoints actually used for scaling |
private double |
dYStep
Overlay grid step size |
private double |
dYTicMax
Axis label endpoints |
private double |
dYTicMin
Axis label endpoints |
private int |
iLabelHeight
The height of the label text font |
private int |
iNumYTics
The number of tics on the Y-axis |
private static int |
iTICKLENGTH
The length in pixels of axis tic marks |
private int |
iXExp
The scaling exponent for the x-axis |
private int |
iYExp
The scaling exponent for the y-axis |
private static java.awt.Font |
labelFont
Font for the labels |
private static java.awt.FontMetrics |
labelFontMetrics
Font metrics for the label font |
private DataFrame |
mainFrame
The DataFrame the axes belong to |
private static java.awt.Font |
superscriptFont
Font for superscripts |
private static java.awt.FontMetrics |
superscriptFontMetrics
Font metrics for the superscript font |
| Constructor Summary | |
|---|---|
Axes(APanel apanel)
|
|
| Method Summary | |
|---|---|
void |
computeScale()
Compute the scale factors for the plot or image |
double |
convertx(double dxin)
Convert from raw dataset units to units used for x-axis |
double |
converty(double dyin)
Convert from raw dataset units to units used for y-axis |
protected void |
copyXYRange(APanel target)
Set the axes endpoints to be the same as some other panel |
protected void |
drawAxes(java.awt.Graphics2D graphics)
Draw the axes using the current range & label |
private void |
drawGridLine(java.awt.Graphics2D g,
int ix,
int iy,
int ixx,
int iyy)
|
private void |
drawTics(java.awt.Graphics2D g,
int ix1,
int iy1,
int ix2,
int iy2,
int ix3,
int iy3,
int ix4,
int iy4)
|
java.awt.geom.Rectangle2D.Double |
getAoi()
|
double |
getGridXSize()
|
double |
getGridYSize()
|
double |
getXPxWid()
Return the horizontal pixel unit width |
double |
getYPxWid()
Return the vertical pixel unit width |
protected void |
scrollX(double delta)
Scroll the x-axis |
protected void |
scrollY(double delta)
Scroll the y-axis |
private void |
setup()
|
void |
setup(Header header)
|
void |
setXRange(double dMin,
double dMax)
Set the plot's X range |
void |
setXYRange(double dLeft,
double dRight,
double dDown,
double dUp)
Set the axes endpoints |
void |
setYRange(double dMin,
double dMax)
Set the plot's Y range |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String[] a$YLabels
private int[] aiYLabelWidth
private APanel apanel
private double dHeadXPxWid
private double dHeadXStart
private double dHeadYPxWid
private double dHeadYStart
public double dXHi
public double dXLo
private double dXStep
private double dXTicMax
private double dXTicMin
public double dYHi
public double dYLo
private double dYStep
private double dYTicMax
private double dYTicMin
private int iLabelHeight
private int iNumYTics
private static final int iTICKLENGTH
private int iXExp
private int iYExp
private static java.awt.Font labelFont
private static java.awt.FontMetrics labelFontMetrics
private DataFrame mainFrame
private static java.awt.Font superscriptFont
private static java.awt.FontMetrics superscriptFontMetrics
| Constructor Detail |
|---|
public Axes(APanel apanel)
| Method Detail |
|---|
public void computeScale()
public double convertx(double dxin)
public double converty(double dyin)
protected void copyXYRange(APanel target)
protected void drawAxes(java.awt.Graphics2D graphics)
private void drawGridLine(java.awt.Graphics2D g,
int ix,
int iy,
int ixx,
int iyy)
private void drawTics(java.awt.Graphics2D g,
int ix1,
int iy1,
int ix2,
int iy2,
int ix3,
int iy3,
int ix4,
int iy4)
public java.awt.geom.Rectangle2D.Double getAoi()
public double getGridXSize()
public double getGridYSize()
public double getXPxWid()
public double getYPxWid()
protected void scrollX(double delta)
delta - the scroll amount (positive values result in a scroll right;
negative values result in a scroll left)protected void scrollY(double delta)
delta - the scroll amount (positive values result in a scroll up;
negative values result in a scroll down)private void setup()
public void setup(Header header)
public void setXRange(double dMin,
double dMax)
public void setXYRange(double dLeft,
double dRight,
double dDown,
double dUp)
public void setYRange(double dMin,
double dMax)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||