|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjwo.utils.gui.JWAxisItem
public class JWAxisItem
Object to hold graph axis information. Includes axis title, labels, and tic mark frequency.
| Constructor Summary | |
|---|---|
JWAxisItem(float min,
float max)
Creates a default set of axis labels and tic marks (10 labels). |
|
JWAxisItem(float min,
float max,
float labelInc)
Creates a default set of axis labels and tic marks using the given interval between labels. |
|
JWAxisItem(float min,
float max,
String[] newLabels)
Creates a set of categorical axis labels and tic marks based on a given set of labels. |
|
JWAxisItem(float min,
float max,
String[] newLabels,
int measurementScale)
Creates a set of axis labels and tic marks based on a given set of labels and a given measurement scale. |
|
| Method Summary | |
|---|---|
String |
getLabel(int n)
Returns a label associated with axis position. |
float |
getLabelPosition(int n)
Returns a label position associated with label. |
int |
getMeasurementScale()
Returns the measurement scale of the data on this axis. |
int |
getNumLabels()
Returns the number of labels associated with axis. |
int |
getNumTicMarks()
Returns the number of tic marks associated with axis. |
float |
getTicMarkPosition(int n)
Returns a tic mark position associated with axis. |
String |
getTitle()
Returns the title associated with axis. |
void |
setMeasurementScale(int scale)
Sets the measurement scale of the data on this axis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JWAxisItem(float min,
float max)
min - Minimum axis value.max - Maximum axis value.
public JWAxisItem(float min,
float max,
float labelInc)
min - Minimum axis value.max - Maximum axis value.labelInc - Increment between labels.
public JWAxisItem(float min,
float max,
String[] newLabels)
min - Minimum axis value.max - Maximum axis value.newLabels - Set of labels to attach to axis.
public JWAxisItem(float min,
float max,
String[] newLabels,
int measurementScale)
min - Minimum axis value.max - Maximum axis value.newLabels - Set of labels to attach to axis.measurementScale - Measurement scale to use. If NOMINAL or ORDINAL, gaps
between boundaries are labelled, if INTERVAL or RATIO, boundaries are
labeled.| Method Detail |
|---|
public String getTitle()
public String getLabel(int n)
n - Index of label to return.
public float getLabelPosition(int n)
n - Index of label to return position of.
public int getNumLabels()
public float getTicMarkPosition(int n)
n - Index of tic mark to return postion of.
public int getNumTicMarks()
public int getMeasurementScale()
public void setMeasurementScale(int scale)
scale - New measurement scale (NOMINAL,ORDINAL etc.).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||