java.lang.Object
ij.gui.PlotDialog
- All Implemented Interfaces:
DialogListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog.static final int
Types of dialog. -
Constructor Summary
ConstructorsConstructorDescriptionPlotDialog
(Plot plot, int dialogType) Constructs a new PlotDialog for a given plot and sets the type of dialog -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method is called when the user changes something in the dialog.void
showDialog
(Frame parent) Asks the user for axis scaling; then replot with new scale on the same ImageProcessor.
-
Field Details
-
SET_RANGE
public static final int SET_RANGETypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
AXIS_OPTIONS
public static final int AXIS_OPTIONSTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
LEGEND
public static final int LEGENDTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
HI_RESOLUTION
public static final int HI_RESOLUTIONTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
TEMPLATE
public static final int TEMPLATETypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
X_LEFT
public static final int X_LEFTTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
X_RIGHT
public static final int X_RIGHTTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
Y_BOTTOM
public static final int Y_BOTTOMTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
Y_TOP
public static final int Y_TOPTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
X_AXIS
public static final int X_AXISTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
Y_AXIS
public static final int Y_AXISTypes of dialog. Note that 10-14 must be the same as the corresponding PlotWindow.rangeArrow numbers- See Also:
-
-
Constructor Details
-
PlotDialog
Constructs a new PlotDialog for a given plot and sets the type of dialog
-
-
Method Details
-
showDialog
Asks the user for axis scaling; then replot with new scale on the same ImageProcessor. The 'parent' frame may be null -
dialogItemChanged
This method is called when the user changes something in the dialog. Note that the 'if's for reading the fields must be exactly the same as those for setting up the fields in 'setupDialog' (fields must be also read in the same sequence).- Specified by:
dialogItemChanged
in interfaceDialogListener
- Parameters:
gd
- A reference to the GenericDialog.e
- The event that has been generated by the user action in the dialog. Note thate
isnull
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.- Returns:
- Should be true if the dialog input is valid. False disables the OK button and preview (if any).
-