|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
uk.ac.starlink.splat.iface.PlotControlFrame
public class PlotControlFrame
PlotControlFrame provides a top-level wrapper for a PlotControl object.
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 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.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
protected PlotControl plot
protected uk.ac.starlink.ast.gui.PlotConfigurator configFrame
protected PolyFitFrame polyFitFrame
protected GenerateFromInterpFrame interpFrame
protected DeblendFrame deblendFrame
protected LineFitFrame lineFitFrame
protected PlotPannerFrame pannerFrame
protected SpecCutterFrame cutterFrame
protected SpecFilterFrame filterFrame
protected PlotUnitsFrame unitsFrame
protected FlipFrame flipFrame
protected StatsFrame statsFrame
protected PlotStackerFrame stackerFrame
protected static Preferences prefs
protected JCheckBoxMenuItem autoFitPercentiles
protected JCheckBoxMenuItem baseSystemMatching
protected JCheckBoxMenuItem coordinateMatching
protected JCheckBoxMenuItem dataUnitsMatching
protected JCheckBoxMenuItem displayErrorsAsData
protected JCheckBoxMenuItem doubleDSBLineIDs
protected JCheckBoxMenuItem errorbarAutoRanging
protected JCheckBoxMenuItem horizontalLineIDs
protected JCheckBoxMenuItem offsetMatching
protected JCheckBoxMenuItem prefixLineIDs
protected JCheckBoxMenuItem shortNameLineIDs
protected JCheckBoxMenuItem showShortNames
protected JCheckBoxMenuItem showSynopsis
protected JCheckBoxMenuItem showLegend
protected JCheckBoxMenuItem showVerticalMarks
protected JCheckBoxMenuItem showVisibleOnly
protected JCheckBoxMenuItem sidebandMatching
protected JCheckBoxMenuItem suffixLineIDs
protected JCheckBoxMenuItem trackerLineIDs
protected JMenu analysisMenu
protected JMenu editMenu
protected JMenu fileMenu
protected JMenu helpMenu
protected JMenu lineOptionsMenu
protected JMenu optionsMenu
protected JMenuBar menuBar
protected JMenuItem drawMenu
protected JMenuItem loadAllLineIDs
protected JMenuItem loadLoadedLineIDs
protected JMenuItem removeCurrent
protected JMenuItem unloadLineIDs
protected PlotGraphicsClipMenuItem clipGraphics
protected ToolButtonBar toolBar
protected uk.ac.starlink.util.gui.BasicFileChooser postscriptChooser
protected JCheckBox epsBox
Constructor Detail |
---|
public PlotControlFrame(SpecDataComp specDataComp) throws SplatException
specDataComp
- Active SpecDataComp reference.
SplatException
public PlotControlFrame(SpecDataComp specDataComp, int id) throws SplatException
specDataComp
- Active SpecDataComp reference.id
- plot identifier (-1 for automatic, otherwise must not be in
use).
SplatException
public PlotControlFrame(PlotControl plotControl) throws SplatException
plotControl
- a PlotControl instance.
SplatException
public PlotControlFrame(String title) throws SplatException
SplatException
public PlotControlFrame(String title, SpecDataComp specDataComp) throws SplatException
specDataComp
- active SpecDataComp reference.
SplatException
public PlotControlFrame(String title, SpecDataComp specDataComp, int id) throws SplatException
title
- for windowspecDataComp
- active SpecDataComp reference.id
- plot identifier (-1 for automatic, otherwise must not be in
use).
SplatException
public PlotControlFrame(String title, String file) throws SplatException
file
- name of file containing spectrum.
SplatException
public PlotControlFrame(String title, PlotControl plotControl) throws SplatException
specDataComp
- Active SpecDataComp reference.
SplatException
Method Detail |
---|
public PlotControl getPlot()
protected void initUI(String title)
protected void configureMenus()
protected void setupFileMenu()
protected void setupAnalysisMenu()
protected void setupEditMenu()
protected void setupOptionsMenu()
protected void setupLineOptionsMenu()
protected void setupGraphicsMenu()
protected void setupHelpMenu()
protected void printDisplay()
protected void printPostscriptDisplay()
protected void printJPEGDisplay()
public void fitToWidth()
public void fitToHeight()
public void configPlot()
protected void configClosed()
protected void closeConfigFrame()
public void polyFit()
protected void polyFitClosed()
protected void closePolyFitFrame()
public void interpolate()
protected void interpClosed()
protected void closeInterpFrame()
public void deblend()
protected void deblendClosed()
protected void closeDeblendFrame()
public void lineFit()
protected void lineFitClosed()
protected void closeLineFitFrame()
public void showPanner()
protected void pannerClosed()
protected void closePanner()
public void showCutter()
protected void cutterClosed()
protected void closeCutter()
public void cutView()
public void showFilter()
protected void filterClosed()
protected void closeFilter()
public void showUnits()
protected void unitsClosed()
protected void closeUnits()
public void showFlip()
protected void flipClosed()
protected void closeFlip()
public void showStats()
protected void statsClosed()
protected void closeStats()
public void showStacker()
protected void stackerClosed()
protected void closeStacker()
protected void setWaitCursor()
protected void resetWaitCursor()
public void closeToolWindows()
protected void finalize() throws Throwable
finalize
in class Object
Throwable
protected void processWindowEvent(WindowEvent e)
processWindowEvent
in class JFrame
public void closeWindow()
public void removeCurrentSpectrum()
protected void recordWindowSize()
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |