|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectplot.Plot
public class Plot
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 |
|---|
public Plot(java.lang.String title,
java.lang.String h_axis_title,
java.lang.String v_axis_title)
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 |
|---|
public void storePlotValues(java.lang.String key_string,
double[] x_values,
double[] y_values,
java.awt.Color color)
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.
public void storePlotValues(java.lang.String key_string,
double[] x_values,
int[] y_values,
java.awt.Color color)
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.
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)
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.public PlotItem getPlotItem(int item_index)
item_index - the index of the ploit item to fetch.
public java.util.ArrayList<PlotItem> getPlotItems()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||