|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplot.ScrolledPlot
public class ScrolledPlot
This class defines the scrolled plot structure used by the PlotPanel to display the plot data using a scrolled image in a plot area with straight plot lines for each plot item (data line), and the lines vary by color or brightness based on each point value.
| Constructor Summary | |
|---|---|
ScrolledPlot(java.lang.String title,
java.lang.String x_axis_title,
java.lang.String y_axis_title,
int num_x_values_max,
double x_values_min,
double x_values_incr)
Create a ScrolledPlot instance, setting titles and assuming a linear horizontal axis. |
|
| Method Summary | |
|---|---|
static java.awt.Color |
getColorForValue(double value,
double min_val,
double max_val,
boolean colors_selected)
Generate a color to use given the current value. |
Plot |
getColumnLinesPlot()
Get a plot of the column lines. |
Plot |
getRowLinesPlot()
Get a plot of the row lines, each entry in a column for that row becomes a point in that row line. |
void |
setValuesRange(double mag_min,
double mag_max)
Set display magnitude range to map into the rainbow colors. |
void |
setVerticals(java.util.ArrayList<java.lang.Double> y_values)
Set the vertical values for the lines to include. |
void |
setVerticals(double[] y_values)
Set the vertical values for the lines to include. |
void |
storePlotValues(java.lang.String key_string,
double x_value,
java.lang.Double[] magnitudes)
Store another time instance set of plot points (a single vertical line). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScrolledPlot(java.lang.String title,
java.lang.String x_axis_title,
java.lang.String y_axis_title,
int num_x_values_max,
double x_values_min,
double x_values_incr)
title - the plot titlex_axis_title - the horizontal axis title.y_axis_title - the vertical axis title.num_x_values_max - the number of horizontal values to include,
dropping extra ones off the left side as the plot scrolls.x_values_incr - the amount to increment the horizontal "tics"
for each new sample column.| Method Detail |
|---|
public void setVerticals(double[] y_values)
y_values - the values for each of the vertical locations.public void setVerticals(java.util.ArrayList<java.lang.Double> y_values)
y_values - the values for each of the vertical locations.
public void setValuesRange(double mag_min,
double mag_max)
mag_min - the minimum value expected.mag_max - the maximum value expected.
public void storePlotValues(java.lang.String key_string,
double x_value,
java.lang.Double[] magnitudes)
key_string - the key string for the line.x_value - the time value for the samples.magnitudes - the array of magnitudes, one each for the vertical
values reserved.public Plot getColumnLinesPlot()
public Plot getRowLinesPlot()
public static java.awt.Color getColorForValue(double value,
double min_val,
double max_val,
boolean colors_selected)
value - the value to convert to a color.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||