uk.ac.starlink.splat.iface
Class PlotControlFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by uk.ac.starlink.splat.iface.PlotControlFrame
All Implemented Interfaces:
ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class PlotControlFrame
extends JFrame
implements ItemListener, ActionListener

PlotControlFrame provides a top-level wrapper for a PlotControl object.

See Also:
Serialized Form

Nested Class Summary
protected  class PlotControlFrame.CloseAction
          Inner class defining Action for closing window.
protected  class PlotControlFrame.ConfigAction
          Inner class defining Action for configuring plot.
protected  class PlotControlFrame.DeblendAction
          Inner class defining Action for deblending lines.
protected  class PlotControlFrame.FilterAction
          Inner class defining Action for filtering spectrum.
protected  class PlotControlFrame.FitHeightAction
          Inner class defining Action for fitting spectrum to height.
protected  class PlotControlFrame.FitWidthAction
          Inner class defining Action for fitting spectrum to width.
protected  class PlotControlFrame.FlipAction
          Inner class defining Action for flipping spectrum.
protected  class PlotControlFrame.GenFromInterpAction
          Inner class defining Action for creating an interpolated background.
protected  class PlotControlFrame.LineFitAction
          Inner class defining Action for fitting spectral lines.
protected  class PlotControlFrame.PannerAction
          Inner class defining Action for showing panner.
protected  class PlotControlFrame.PolyFitAction
          Inner class defining Action for fitting a polynomial to a spectrum.
protected  class PlotControlFrame.PrintAction
          Inner class defining Action for printing.
protected  class PlotControlFrame.PrintJPEGAction
          Inner class defining Action for printing to a JPEG or PNG file.
protected  class PlotControlFrame.PrintPostscriptAction
          Inner class defining Action for printing to postscript.
protected  class PlotControlFrame.RegionCutterAction
          Inner class defining Action for cutting out regions of spectrum.
protected  class PlotControlFrame.StackerAction
          Inner class defining plot stacker action.
protected  class PlotControlFrame.StatsAction
          Inner class defining stats action.
protected  class PlotControlFrame.UnitsAction
          Inner class defining Action for changing units.
protected  class PlotControlFrame.ViewCutterAction
          Inner class defining Action for cutting out view of spectrum.
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  JMenu analysisMenu
           
protected  JCheckBoxMenuItem autoFitPercentiles
          Main menubar and various menus.
protected  JCheckBoxMenuItem baseSystemMatching
           
protected  PlotGraphicsClipMenuItem clipGraphics
           
protected  uk.ac.starlink.ast.gui.PlotConfigurator configFrame
          PlotConfigurator window for changing the Plot configuration values (created when required).
protected  JCheckBoxMenuItem coordinateMatching
           
protected  SpecCutterFrame cutterFrame
          The cutter window.
protected  JCheckBoxMenuItem dataUnitsMatching
           
protected  DeblendFrame deblendFrame
          Window used to deblend spectra.
protected  JCheckBoxMenuItem displayErrorsAsData
           
protected  JCheckBoxMenuItem doubleDSBLineIDs
           
protected  JMenuItem drawMenu
           
protected  JMenu editMenu
           
protected  JCheckBox epsBox
          Checkbox controlling the type of postscript saved.
protected  JCheckBoxMenuItem errorbarAutoRanging
           
protected  JMenu fileMenu
           
protected  SpecFilterFrame filterFrame
          The filter window.
protected  FlipFrame flipFrame
          The flip and translate frame.
protected  JMenu helpMenu
           
protected  JCheckBoxMenuItem horizontalLineIDs
           
protected  GenerateFromInterpFrame interpFrame
          Window used to generate spectra from hand drawn interpolated lines.
protected  LineFitFrame lineFitFrame
          LineFitFrame window for measuring to the spectral line properties.
protected  JMenu lineOptionsMenu
           
protected  JMenuItem loadAllLineIDs
           
protected  JMenuItem loadLoadedLineIDs
           
protected  JMenuBar menuBar
           
protected  JCheckBoxMenuItem offsetMatching
           
protected  JMenu optionsMenu
           
protected  PlotPannerFrame pannerFrame
          The panner window.
protected  PlotControl plot
          PlotControl object for displaying the spectra.
protected  PolyFitFrame polyFitFrame
          PolyFitFrame window for fitting a polynomial to the spectrum (created when required).
protected  uk.ac.starlink.util.gui.BasicFileChooser postscriptChooser
          File chooser used for postscript files.
protected  JCheckBoxMenuItem prefixLineIDs
           
protected static Preferences prefs
          UI preferences.
protected  JMenuItem removeCurrent
           
protected  JCheckBoxMenuItem shortNameLineIDs
           
protected  JCheckBoxMenuItem showLegend
           
protected  JCheckBoxMenuItem showShortNames
           
protected  JCheckBoxMenuItem showSynopsis
           
protected  JCheckBoxMenuItem showVerticalMarks
           
protected  JCheckBoxMenuItem showVisibleOnly
           
protected  JCheckBoxMenuItem sidebandMatching
           
protected  PlotStackerFrame stackerFrame
          The spectra stacker frame.
protected  StatsFrame statsFrame
          The statistics frame.
protected  JCheckBoxMenuItem suffixLineIDs
           
protected  ToolButtonBar toolBar
          Toolbar.
protected  JCheckBoxMenuItem trackerLineIDs
           
protected  PlotUnitsFrame unitsFrame
          The units window.
protected  JMenuItem unloadLineIDs
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PlotControlFrame(PlotControl plotControl)
          Create instance using an existing PlotControl.
PlotControlFrame(SpecDataComp specDataComp)
          Create an instance using an existing SpecDataComp.
PlotControlFrame(SpecDataComp specDataComp, int id)
          Create an instance using an existing SpecDataComp and new PlotControl with a given plot index.
PlotControlFrame(String title)
          Create the main window.
PlotControlFrame(String title, PlotControl plotControl)
          Create an instance with a given title and PlotControl.
PlotControlFrame(String title, SpecDataComp specDataComp)
          Create an instance with a given title and SpecDataComp.
PlotControlFrame(String title, SpecDataComp specDataComp, int id)
          Create an instance with a given title and SpecDataComp.
PlotControlFrame(String title, String file)
          Plot a spectrum.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
protected  void closeConfigFrame()
          Close the config window.
protected  void closeCutter()
          Close the cutter window.
protected  void closeDeblendFrame()
          Close the deblending window.
protected  void closeFilter()
          Close the filter window.
protected  void closeFlip()
          Close the flip window.
protected  void closeInterpFrame()
          Close the interpolation window.
protected  void closeLineFitFrame()
          Close the line fitting window.
protected  void closePanner()
          Close the panner window.
protected  void closePolyFitFrame()
          Close the polynomial fitting window.
protected  void closeStacker()
          Close the stacker window.
protected  void closeStats()
          Close the stats window.
 void closeToolWindows()
          Close all associated tool windows.
protected  void closeUnits()
          Close the units window.
 void closeWindow()
          Close the main window, removing all the tool windows too.
protected  void configClosed()
          Configuration window is closed.
 void configPlot()
          Activate the pop-up window for configuring the Plot.
protected  void configureMenus()
          Configure the menu and toolbar.
protected  void cutterClosed()
          Cutter window is closed.
 void cutView()
          Cut out the current view of the current spectrum and add it to the global list.
 void deblend()
          Activate the pop-up window for deblending spectral lines.
protected  void deblendClosed()
          Deblend window is closed.
protected  void filterClosed()
          Filter window is closed.
protected  void finalize()
          Clear resources when finalized.
 void fitToHeight()
          Make spectrum fit height.
 void fitToWidth()
          Make spectrum fit width.
protected  void flipClosed()
          Flip window is closed.
 PlotControl getPlot()
          Return a reference to the PlotControl object.
protected  void initUI(String title)
          Make the frame visible and set the default action for when we are closed.
protected  void interpClosed()
          Interpolation window is closed.
 void interpolate()
          Activate the pop-up window for generating an interpolated spectrum.
 void itemStateChanged(ItemEvent e)
           
 void lineFit()
          Activate the pop-up window for fitting lines of the current spectrum.
protected  void lineFitClosed()
          Line fitting window is closed.
protected  void pannerClosed()
          Panner window is closed.
 void polyFit()
          Activate the pop-up window for fitting a polynomial to the current spectrum.
protected  void polyFitClosed()
          Polynomial fitting window is closed.
protected  void printDisplay()
          Print the current display to a printer.
protected  void printJPEGDisplay()
          Print the current display to a JPEG or PNG file.
protected  void printPostscriptDisplay()
          Print the current display to a postscript file.
protected  void processWindowEvent(WindowEvent e)
          When window is closed remove configuration windows too.
protected  void recordWindowSize()
          Record the window size into the preferences database.
 void removeCurrentSpectrum()
          Remove the current spectrum.
protected  void resetWaitCursor()
          Undo the action of the setWaitCursor method.
protected  void setupAnalysisMenu()
          Configure the analysis menu.
protected  void setupEditMenu()
          Configure the edit menu.
protected  void setupFileMenu()
          Configure the File menu.
protected  void setupGraphicsMenu()
          Configure the Graphics menu.
protected  void setupHelpMenu()
          Configure the help menu.
protected  void setupLineOptionsMenu()
          Set up the line identifier options menu.
protected  void setupOptionsMenu()
          Configure the options menu.
protected  void setWaitCursor()
          Set the main cursor to indicate waiting for some action to complete and lock the interface by trapping all mouse events.
 void showCutter()
          Activate the cutter window.
 void showFilter()
          Activate the filter window.
 void showFlip()
          Activate the flip window.
 void showPanner()
          Activate the panner window for panning a zoomed spectrum.
 void showStacker()
          Activate the stacker window.
 void showStats()
          Activate the stats window.
 void showUnits()
          Activate the units window.
protected  void stackerClosed()
          Stacker window is closed.
protected  void statsClosed()
          Stats window is closed.
protected  void unitsClosed()
          Units window is closed.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

plot

protected PlotControl plot
PlotControl object for displaying the spectra.


configFrame

protected uk.ac.starlink.ast.gui.PlotConfigurator configFrame
PlotConfigurator window for changing the Plot configuration values (created when required).


polyFitFrame

protected PolyFitFrame polyFitFrame
PolyFitFrame window for fitting a polynomial to the spectrum (created when required).


interpFrame

protected GenerateFromInterpFrame interpFrame
Window used to generate spectra from hand drawn interpolated lines.


deblendFrame

protected DeblendFrame deblendFrame
Window used to deblend spectra.


lineFitFrame

protected LineFitFrame lineFitFrame
LineFitFrame window for measuring to the spectral line properties. (created when required).


pannerFrame

protected PlotPannerFrame pannerFrame
The panner window.


cutterFrame

protected SpecCutterFrame cutterFrame
The cutter window.


filterFrame

protected SpecFilterFrame filterFrame
The filter window.


unitsFrame

protected PlotUnitsFrame unitsFrame
The units window.


flipFrame

protected FlipFrame flipFrame
The flip and translate frame.


statsFrame

protected StatsFrame statsFrame
The statistics frame.


stackerFrame

protected PlotStackerFrame stackerFrame
The spectra stacker frame.


prefs

protected static Preferences prefs
UI preferences.


autoFitPercentiles

protected JCheckBoxMenuItem autoFitPercentiles
Main menubar and various menus.


baseSystemMatching

protected JCheckBoxMenuItem baseSystemMatching

coordinateMatching

protected JCheckBoxMenuItem coordinateMatching

dataUnitsMatching

protected JCheckBoxMenuItem dataUnitsMatching

displayErrorsAsData

protected JCheckBoxMenuItem displayErrorsAsData

doubleDSBLineIDs

protected JCheckBoxMenuItem doubleDSBLineIDs

errorbarAutoRanging

protected JCheckBoxMenuItem errorbarAutoRanging

horizontalLineIDs

protected JCheckBoxMenuItem horizontalLineIDs

offsetMatching

protected JCheckBoxMenuItem offsetMatching

prefixLineIDs

protected JCheckBoxMenuItem prefixLineIDs

shortNameLineIDs

protected JCheckBoxMenuItem shortNameLineIDs

showShortNames

protected JCheckBoxMenuItem showShortNames

showSynopsis

protected JCheckBoxMenuItem showSynopsis

showLegend

protected JCheckBoxMenuItem showLegend

showVerticalMarks

protected JCheckBoxMenuItem showVerticalMarks

showVisibleOnly

protected JCheckBoxMenuItem showVisibleOnly

sidebandMatching

protected JCheckBoxMenuItem sidebandMatching

suffixLineIDs

protected JCheckBoxMenuItem suffixLineIDs

trackerLineIDs

protected JCheckBoxMenuItem trackerLineIDs

analysisMenu

protected JMenu analysisMenu

editMenu

protected JMenu editMenu

fileMenu

protected JMenu fileMenu

helpMenu

protected JMenu helpMenu

lineOptionsMenu

protected JMenu lineOptionsMenu

optionsMenu

protected JMenu optionsMenu

menuBar

protected JMenuBar menuBar

drawMenu

protected JMenuItem drawMenu

loadAllLineIDs

protected JMenuItem loadAllLineIDs

loadLoadedLineIDs

protected JMenuItem loadLoadedLineIDs

removeCurrent

protected JMenuItem removeCurrent

unloadLineIDs

protected JMenuItem unloadLineIDs

clipGraphics

protected PlotGraphicsClipMenuItem clipGraphics

toolBar

protected ToolButtonBar toolBar
Toolbar.


postscriptChooser

protected uk.ac.starlink.util.gui.BasicFileChooser postscriptChooser
File chooser used for postscript files.


epsBox

protected JCheckBox epsBox
Checkbox controlling the type of postscript saved.

Constructor Detail

PlotControlFrame

public PlotControlFrame(SpecDataComp specDataComp)
                 throws SplatException
Create an instance using an existing SpecDataComp.

Parameters:
specDataComp - Active SpecDataComp reference.
Throws:
SplatException

PlotControlFrame

public PlotControlFrame(SpecDataComp specDataComp,
                        int id)
                 throws SplatException
Create an instance using an existing SpecDataComp and new PlotControl with a given plot index.

Parameters:
specDataComp - Active SpecDataComp reference.
id - plot identifier (-1 for automatic, otherwise must not be in use).
Throws:
SplatException

PlotControlFrame

public PlotControlFrame(PlotControl plotControl)
                 throws SplatException
Create instance using an existing PlotControl.

Parameters:
plotControl - a PlotControl instance.
Throws:
SplatException

PlotControlFrame

public PlotControlFrame(String title)
                 throws SplatException
Create the main window. Creates default PlotControls and SpecDataComp instances.

Throws:
SplatException

PlotControlFrame

public PlotControlFrame(String title,
                        SpecDataComp specDataComp)
                 throws SplatException
Create an instance with a given title and SpecDataComp. A new default PlotControl instance will be created.

Parameters:
specDataComp - active SpecDataComp reference.
Throws:
SplatException

PlotControlFrame

public PlotControlFrame(String title,
                        SpecDataComp specDataComp,
                        int id)
                 throws SplatException
Create an instance with a given title and SpecDataComp. A new default PlotControl instance will be created.

Parameters:
title - for window
specDataComp - active SpecDataComp reference.
id - plot identifier (-1 for automatic, otherwise must not be in use).
Throws:
SplatException

PlotControlFrame

public PlotControlFrame(String title,
                        String file)
                 throws SplatException
Plot a spectrum.

Parameters:
file - name of file containing spectrum.
Throws:
SplatException

PlotControlFrame

public PlotControlFrame(String title,
                        PlotControl plotControl)
                 throws SplatException
Create an instance with a given title and PlotControl.

Parameters:
specDataComp - Active SpecDataComp reference.
Throws:
SplatException
Method Detail

getPlot

public PlotControl getPlot()
Return a reference to the PlotControl object.


initUI

protected void initUI(String title)
Make the frame visible and set the default action for when we are closed.


configureMenus

protected void configureMenus()
Configure the menu and toolbar.


setupFileMenu

protected void setupFileMenu()
Configure the File menu.


setupAnalysisMenu

protected void setupAnalysisMenu()
Configure the analysis menu.


setupEditMenu

protected void setupEditMenu()
Configure the edit menu.


setupOptionsMenu

protected void setupOptionsMenu()
Configure the options menu.


setupLineOptionsMenu

protected void setupLineOptionsMenu()
Set up the line identifier options menu.


setupGraphicsMenu

protected void setupGraphicsMenu()
Configure the Graphics menu.


setupHelpMenu

protected void setupHelpMenu()
Configure the help menu.


printDisplay

protected void printDisplay()
Print the current display to a printer.


printPostscriptDisplay

protected void printPostscriptDisplay()
Print the current display to a postscript file.


printJPEGDisplay

protected void printJPEGDisplay()
Print the current display to a JPEG or PNG file.


fitToWidth

public void fitToWidth()
Make spectrum fit width.


fitToHeight

public void fitToHeight()
Make spectrum fit height.


configPlot

public void configPlot()
Activate the pop-up window for configuring the Plot.


configClosed

protected void configClosed()
Configuration window is closed.


closeConfigFrame

protected void closeConfigFrame()
Close the config window.


polyFit

public void polyFit()
Activate the pop-up window for fitting a polynomial to the current spectrum.


polyFitClosed

protected void polyFitClosed()
Polynomial fitting window is closed.


closePolyFitFrame

protected void closePolyFitFrame()
Close the polynomial fitting window.


interpolate

public void interpolate()
Activate the pop-up window for generating an interpolated spectrum.


interpClosed

protected void interpClosed()
Interpolation window is closed.


closeInterpFrame

protected void closeInterpFrame()
Close the interpolation window.


deblend

public void deblend()
Activate the pop-up window for deblending spectral lines.


deblendClosed

protected void deblendClosed()
Deblend window is closed.


closeDeblendFrame

protected void closeDeblendFrame()
Close the deblending window.


lineFit

public void lineFit()
Activate the pop-up window for fitting lines of the current spectrum.


lineFitClosed

protected void lineFitClosed()
Line fitting window is closed.


closeLineFitFrame

protected void closeLineFitFrame()
Close the line fitting window.


showPanner

public void showPanner()
Activate the panner window for panning a zoomed spectrum.


pannerClosed

protected void pannerClosed()
Panner window is closed.


closePanner

protected void closePanner()
Close the panner window.


showCutter

public void showCutter()
Activate the cutter window.


cutterClosed

protected void cutterClosed()
Cutter window is closed.


closeCutter

protected void closeCutter()
Close the cutter window.


cutView

public void cutView()
Cut out the current view of the current spectrum and add it to the global list.


showFilter

public void showFilter()
Activate the filter window.


filterClosed

protected void filterClosed()
Filter window is closed.


closeFilter

protected void closeFilter()
Close the filter window.


showUnits

public void showUnits()
Activate the units window.


unitsClosed

protected void unitsClosed()
Units window is closed.


closeUnits

protected void closeUnits()
Close the units window.


showFlip

public void showFlip()
Activate the flip window.


flipClosed

protected void flipClosed()
Flip window is closed.


closeFlip

protected void closeFlip()
Close the flip window.


showStats

public void showStats()
Activate the stats window.


statsClosed

protected void statsClosed()
Stats window is closed.


closeStats

protected void closeStats()
Close the stats window.


showStacker

public void showStacker()
Activate the stacker window.


stackerClosed

protected void stackerClosed()
Stacker window is closed.


closeStacker

protected void closeStacker()
Close the stacker window.


setWaitCursor

protected void setWaitCursor()
Set the main cursor to indicate waiting for some action to complete and lock the interface by trapping all mouse events.


resetWaitCursor

protected void resetWaitCursor()
Undo the action of the setWaitCursor method.


closeToolWindows

public void closeToolWindows()
Close all associated tool windows.


finalize

protected void finalize()
                 throws Throwable
Clear resources when finalized.

Overrides:
finalize in class Object
Throws:
Throwable

processWindowEvent

protected void processWindowEvent(WindowEvent e)
When window is closed remove configuration windows too.

Overrides:
processWindowEvent in class JFrame

closeWindow

public void closeWindow()
Close the main window, removing all the tool windows too.


removeCurrentSpectrum

public void removeCurrentSpectrum()
Remove the current spectrum.


recordWindowSize

protected void recordWindowSize()
Record the window size into the preferences database.


itemStateChanged

public void itemStateChanged(ItemEvent e)
Specified by:
itemStateChanged in interface ItemListener

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener


Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.