|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplot.PlotItem
public class PlotItem
This class defines the basic PlotItem structure used by the PlotPanel to display the plot data.
| Constructor Summary | |
|---|---|
PlotItem(java.lang.String key_string,
java.util.ArrayList<java.util.ArrayList<java.lang.Double>> values,
int first_entry_index,
int second_entry_index,
int radius,
java.awt.Color color)
Create a plot item to include in the plot and key. |
|
PlotItem(java.lang.String key_string,
java.util.ArrayList<java.lang.Double> x_values,
java.util.ArrayList<java.lang.Double> y_values,
java.awt.Color color)
Create a plot item to include in the plot and key. |
|
PlotItem(java.lang.String key_string,
double[] x_values,
double[] y_values,
java.awt.Color color)
Create a plot item to include in the plot and key. |
|
PlotItem(java.lang.String key_string,
double[] x_values,
int[] y_values,
java.awt.Color color)
Create a plot item to include in the plot and key. |
|
| Method Summary | |
|---|---|
java.lang.String |
getTitle()
Get the plot item's title. |
double[] |
getXValues(boolean log_flag)
Get the linear collection of values to be plotted. |
double[] |
getYValues(boolean log_flag)
Get the linear collection of values to be plotted. |
boolean |
isSelected()
See if the plot item is selected. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlotItem(java.lang.String key_string,
double[] x_values,
double[] y_values,
java.awt.Color color)
key_string - the title to give this item's line in the plot.x_values - the array of x values for the plot line.y_values - the array of y values for the plot line.color - the color to give the line.
public PlotItem(java.lang.String key_string,
double[] x_values,
int[] y_values,
java.awt.Color color)
key_string - the title to give this item's line in the plot.x_values - the array of x values for the plot line.y_values - the array of integer y values for the plot line.color - the color to give the line.
public PlotItem(java.lang.String key_string,
java.util.ArrayList<java.lang.Double> x_values,
java.util.ArrayList<java.lang.Double> y_values,
java.awt.Color color)
key_string - the title to give this item's line in the plot.x_values - the ArrayList of x values for the plot line.y_values - the ArrayList of y values for the plot line.color - the color to give the line.
public PlotItem(java.lang.String key_string,
java.util.ArrayList<java.util.ArrayList<java.lang.Double>> values,
int first_entry_index,
int second_entry_index,
int radius,
java.awt.Color color)
key_string - the title to give this item's line in the plot.values - the ArrayList of entries of ArrayList values.first_entry_index - the index of the first (x) value.second_entry_index - the index of the second (y) value.radius - the radius of the dot to use (< 1 for just a line).color - the color to give the line.| Method Detail |
|---|
public double[] getXValues(boolean log_flag)
log_flag - if true the log10 of each value is to be returned.public double[] getYValues(boolean log_flag)
log_flag - if true the log10 of each value is to be returned.public java.lang.String getTitle()
public boolean isSelected()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||