plot
Class PlotItem

java.lang.Object
  extended by plot.PlotItem

public class PlotItem
extends java.lang.Object

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

PlotItem

public 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.

Parameters:
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.

PlotItem

public 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.

Parameters:
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.

PlotItem

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)
Create a plot item to include in the plot and key.

Parameters:
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.

PlotItem

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)
Create a plot item to include in the plot and key.

Parameters:
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

getXValues

public double[] getXValues(boolean log_flag)
Get the linear collection of values to be plotted. These are the logs of the values if the log_flag is true.

Parameters:
log_flag - if true the log10 of each value is to be returned.

getYValues

public double[] getYValues(boolean log_flag)
Get the linear collection of values to be plotted. These are the logs of the values if the log_flag is true.

Parameters:
log_flag - if true the log10 of each value is to be returned.

getTitle

public java.lang.String getTitle()
Get the plot item's title.

Returns:
the title string.

isSelected

public boolean isSelected()
See if the plot item is selected.

Returns:
the "is_selected" flag value.