public class PlotContentsDialog extends java.lang.Object implements DialogListener
Modifier and Type | Field and Description |
---|---|
static int |
ADD_FIT
Types of dialog (ERROR suppresses the dialog after an invalid call of a constructor)
|
static int |
ADD_FROM_ARRAYS
Types of dialog (ERROR suppresses the dialog after an invalid call of a constructor)
|
static int |
ADD_FROM_PLOT
Types of dialog (ERROR suppresses the dialog after an invalid call of a constructor)
|
static int |
ADD_FROM_TABLE
Types of dialog (ERROR suppresses the dialog after an invalid call of a constructor)
|
static int |
ERROR
Types of dialog (ERROR suppresses the dialog after an invalid call of a constructor)
|
static int |
STYLE
Types of dialog (ERROR suppresses the dialog after an invalid call of a constructor)
|
Constructor and Description |
---|
PlotContentsDialog(Plot plot,
int dialogType)
Prepares a new PlotContentsDialog for an existing plot.
|
PlotContentsDialog(Plot plot,
java.lang.String[] headings,
java.lang.String[] defaultHeadings,
java.util.ArrayList<float[]> data)
Prepares a new PlotContentsDialog for adding data from float[] arrays to a plot.
|
PlotContentsDialog(java.lang.String title,
ResultsTable rt)
Prepares a new PlotContentsDialog for creating a new plot using data from a ResultsTable.
|
PlotContentsDialog(java.lang.String title,
java.lang.String[] headings,
java.lang.String[] defaultHeadings,
java.util.ArrayList<float[]> data)
Prepares a new PlotContentsDialog for creating a new plot using float[] arrays as data.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dialogItemChanged(GenericDialog gd,
java.awt.AWTEvent e)
This method is invoked by a Generic Dialog if any of the inputs have changed
(CANCEL does not trigger it; OK and running the dialog from a macro only
trigger the first DialogListener added to a GenericDialog).
|
void |
noErrorBars()
Avoids showing a selection for the error bars; must be called before showDialog.
|
void |
showDialog(java.awt.Frame parent)
Shows the dialog, with a given parent Frame (may be null)
|
static boolean |
tableWindowExists()
Returns whether there is at least one table that can be used for "Add from Table"
|
public static final int ERROR
public static final int STYLE
public static final int ADD_FROM_PLOT
public static final int ADD_FROM_TABLE
public static final int ADD_FROM_ARRAYS
public static final int ADD_FIT
public PlotContentsDialog(Plot plot, int dialogType)
dialogType
- may be STYLE (contents style), ADD_FROM_PLOT (add object from other plot), ADD_FROM_TABLE, and ADD_FITpublic PlotContentsDialog(java.lang.String title, ResultsTable rt)
public PlotContentsDialog(java.lang.String title, java.lang.String[] headings, java.lang.String[] defaultHeadings, java.util.ArrayList<float[]> data)
public PlotContentsDialog(Plot plot, java.lang.String[] headings, java.lang.String[] defaultHeadings, java.util.ArrayList<float[]> data)
public void noErrorBars()
public void showDialog(java.awt.Frame parent)
public boolean dialogItemChanged(GenericDialog gd, java.awt.AWTEvent e)
DialogListener
dialogItemChanged
in interface DialogListener
gd
- A reference to the GenericDialog.e
- The event that has been generated by the user action in the dialog.
Note that e
is null
if the
dialogItemChanged method is called after the user has pressed the
OK button or if the GenericDialog has read its parameters from a
macro.public static boolean tableWindowExists()