plot
Class Plot

java.lang.Object
  extended by plot.Plot

public class Plot
extends java.lang.Object

This class defines the basic plot structure used by the PlotPanel to display the plot data using a simple rectangular plot area with separate plot lines for each plot item (data line).


Constructor Summary
Plot(java.lang.String title, java.lang.String h_axis_title, java.lang.String v_axis_title)
          Create the plot object with the given titles/labels.
 
Method Summary
 PlotItem getPlotItem(int item_index)
          Get the designated plot item structure reference.
 java.util.ArrayList<PlotItem> getPlotItems()
          Set the menu entries according to the status of the plot items.
 void storePlotValues(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)
          Store another set of plot points (a single line) along with their color.
 void storePlotValues(java.lang.String key_string, double[] x_values, double[] y_values, java.awt.Color color)
          Store another set of plot points (a single line) along with their color.
 void storePlotValues(java.lang.String key_string, double[] x_values, int[] y_values, java.awt.Color color)
          Store another set of plot points (a single line) along with their color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Plot

public Plot(java.lang.String title,
            java.lang.String h_axis_title,
            java.lang.String v_axis_title)
Create the plot object with the given titles/labels.

Parameters:
title - the overall plot title to use.
h_axis_title - the title for the horizontal axis.
v_axis_title - the title for the vertical axis.
Method Detail

storePlotValues

public void storePlotValues(java.lang.String key_string,
                            double[] x_values,
                            double[] y_values,
                            java.awt.Color color)
Store another set of plot points (a single line) along with their color.

Parameters:
key_string - the key string for the line.
x_values - the array of x-values.
y_values - the array of y-values.
color - the color for the line.

storePlotValues

public void storePlotValues(java.lang.String key_string,
                            double[] x_values,
                            int[] y_values,
                            java.awt.Color color)
Store another set of plot points (a single line) along with their color.

Parameters:
key_string - the key string for the line.
x_values - the array of double x-values.
y_values - the array of integer y-values.
color - the color for the line.

storePlotValues

public void storePlotValues(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)
Store another set of plot points (a single line) along with their color. An array list of ArrayList entries is passed in and the indices select which indices to pick out of each of the ArrayList entries for each of the variables.

Parameters:
key_string - the key string for the line.
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 for the dot and line.

getPlotItem

public PlotItem getPlotItem(int item_index)
Get the designated plot item structure reference.

Parameters:
item_index - the index of the ploit item to fetch.
Returns:
the reference to the desired PlotItem class instance.

getPlotItems

public java.util.ArrayList<PlotItem> getPlotItems()
Set the menu entries according to the status of the plot items.