|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.Axis
public class Axis
This class defines the basic axis structure that can be used by plot to display the plot data.
| Constructor Summary | |
|---|---|
Axis(java.lang.String axis_title)
Constructor, expects the scale to be set later. |
|
| Method Summary | |
|---|---|
double |
getAdjustedValueMax()
Retrieve the adjusted maximum (display maximum) value for the axis data values. |
double |
getAdjustedValueMin()
Retrieve the adjusted minimum (display minimum) value for the axis data values. |
double |
getAdjustedValueRange()
Retrieve the adjusted range (display range) for the axis data values. |
boolean |
getDisplayGrid()
Checks for the display_grid flag setting. |
boolean |
getDisplayMinorTics()
Checks for the display_minor_tics flag setting. |
boolean |
getDisplayTics()
Checks for the display_tics flag setting. |
java.util.ArrayList<java.lang.Double> |
getMajorTics()
Retrieve the major tic location values for the axis. |
java.util.ArrayList<java.lang.Double> |
getMinorTics()
Retrieve the minor tic location values for the axis. |
java.util.ArrayList<java.lang.String> |
getTicLabels()
Retrieve the major tic labels for the axis. |
java.lang.String |
getTitle()
Gets the title string for the axis. |
boolean |
isLog()
Retrieve the is_log flag value for the axis. |
void |
setDisplayGrid(boolean display_grid)
Sets the display_grid flag. |
void |
setDisplayMinorTics(boolean display_minor_tics)
Sets the display_minor_tics flag. |
void |
setDisplayTics(boolean display_tics)
Sets the display_tics flag. |
void |
setLog(boolean is_log)
Set the is_log flag value for the axis. |
void |
setupLinear()
Sets up the linear axis values for use in a plot. |
void |
setupLog()
Sets up the log axis values for use in a plot. |
void |
updateAxis(java.lang.String axis_title,
double value_min,
double value_max,
boolean is_log,
boolean include_zero)
Updates the scales and tics for an existing plot axis. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Axis(java.lang.String axis_title)
axis_title - the title to label this axis.| Method Detail |
|---|
public java.lang.String getTitle()
public boolean isLog()
public void setLog(boolean is_log)
is_log - is true to make the axis be a log axis.public boolean getDisplayTics()
public void setDisplayTics(boolean display_tics)
display_tics - flag for displaying tics.public boolean getDisplayMinorTics()
public void setDisplayMinorTics(boolean display_minor_tics)
display_minor_tics - flag for displaying minor tics.public boolean getDisplayGrid()
public void setDisplayGrid(boolean display_grid)
display_grid - flag for displaying the grid.
public void updateAxis(java.lang.String axis_title,
double value_min,
double value_max,
boolean is_log,
boolean include_zero)
throws java.lang.Exception
axis_title - the title to label this axis.value_min - the minimum value to cover with this axis.value_max - the maximum value to cover with this axis.is_log - if true the axis is to use a log scale.include_zero - if true include zero even if the data doesn't.
java.lang.Exception - if log of non-positive values requested.public void setupLinear()
public void setupLog()
public java.util.ArrayList<java.lang.Double> getMajorTics()
public java.util.ArrayList<java.lang.String> getTicLabels()
public java.util.ArrayList<java.lang.Double> getMinorTics()
public double getAdjustedValueMin()
public double getAdjustedValueMax()
public double getAdjustedValueRange()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||