noiseMonitor
Class NoiseTabPanel

java.lang.Object
  extended by noiseMonitor.NoiseTabPanel
All Implemented Interfaces:
PamTabPanel

public class NoiseTabPanel
extends java.lang.Object
implements PamTabPanel


Nested Class Summary
private  class NoiseTabPanel.ChannelSelectionPanel
           
private  class NoiseTabPanel.DataSelectionPanel
           
(package private)  class NoiseTabPanel.DisplayOptions
           
private  class NoiseTabPanel.NoiseObserver
           
private  class NoiseTabPanel.PlotAxesPanel
          Axis for time series plot
private  class NoiseTabPanel.PlotMouse
           
private  class NoiseTabPanel.PlotPanel
          Plot panel for time series plot
private  class NoiseTabPanel.SelectionChanged
           
private  class NoiseTabPanel.SpecPlotAxesPanel
           
private  class NoiseTabPanel.SpecPlotPanel
           
private  class NoiseTabPanel.StatsSelectionPanel
           
private  class NoiseTabPanel.TimeRangeListener
           
 
Field Summary
private  PamPanel centerPanel
           
private  java.awt.Color[][] channelColours
           
private  NoiseTabPanel.ChannelSelectionPanel channelSelectionPanel
           
private  NoiseTabPanel.DataSelectionPanel dataSelectionPanel
           
private  PamAxis freqAxis
           
private  boolean isViewer
           
private  java.lang.Integer lastMouseX
           
private  java.lang.Integer lastMouseY
           
private  PamPanel leftPanel
           
private  PamAxis levelAxis
           
private  javax.swing.JPanel mainPanel
           
private  javax.swing.JPopupMenu mouseMenu
           
private  PamLabel mouseTime
           
private  NoiseControl noiseControl
           
private  NoiseTabPanel.NoiseObserver noiseObserver
           
private  NoiseTabPanel.PlotAxesPanel plotAxesPanel
           
private  NoiseTabPanel.PlotPanel plotPanel
           
 RangeSpinner rangeSpinner
           
private  NoiseTabPanel.SelectionChanged selectionChanged
           
private  NoiseTabPanel.SpecPlotAxesPanel specAxisPanel
           
private  PamAxis specLevelAxis
           
private  NoiseTabPanel.SpecPlotPanel specPlotPanel
           
private  PamLabel startTime
           
private  NoiseTabPanel.StatsSelectionPanel statsSelectionPanel
           
private  int[] symbolTypes
           
private  PamAxis timeAxis
           
private  PamPanel timeLabelPanel
           
private  PamScroller timeScroller
           
 
Constructor Summary
NoiseTabPanel(NoiseControl noiseControl)
           
 
Method Summary
private  void autoFreqScale()
           
private  int channelIndexToNumber(int chanIndex)
          Convert a channel index into a channel number
 javax.swing.JMenu createMenu(java.awt.Frame parentFrame)
           
private  NoiseSettings getCurrentNoiseSettings()
           
 javax.swing.JComponent getPanel()
           
 javax.swing.JToolBar getToolBar()
           
 void newData(NoiseDataUnit noiseData)
           
protected  void newSettings()
           
 void repaintPlots()
           
 void sayMouseData(java.lang.Integer x, java.lang.Integer y)
           
 void sayStartTime(long valueMillis)
           
private  void selectionChanged()
           
private  void setAutoScale()
           
private  void setSymbol(PamSymbol symbol, int chan, int iMeasure, int iStat)
           
 void showMenu(java.awt.event.MouseEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noiseControl

private NoiseControl noiseControl

mainPanel

private javax.swing.JPanel mainPanel

leftPanel

private PamPanel leftPanel

centerPanel

private PamPanel centerPanel

plotAxesPanel

private NoiseTabPanel.PlotAxesPanel plotAxesPanel

plotPanel

private NoiseTabPanel.PlotPanel plotPanel

specPlotPanel

private NoiseTabPanel.SpecPlotPanel specPlotPanel

dataSelectionPanel

private NoiseTabPanel.DataSelectionPanel dataSelectionPanel

channelSelectionPanel

private NoiseTabPanel.ChannelSelectionPanel channelSelectionPanel

statsSelectionPanel

private NoiseTabPanel.StatsSelectionPanel statsSelectionPanel

timeAxis

private PamAxis timeAxis

levelAxis

private PamAxis levelAxis

specLevelAxis

private PamAxis specLevelAxis

freqAxis

private PamAxis freqAxis

selectionChanged

private NoiseTabPanel.SelectionChanged selectionChanged

timeScroller

private PamScroller timeScroller

noiseObserver

private NoiseTabPanel.NoiseObserver noiseObserver

channelColours

private java.awt.Color[][] channelColours

symbolTypes

private int[] symbolTypes

rangeSpinner

public RangeSpinner rangeSpinner

startTime

private PamLabel startTime

mouseTime

private PamLabel mouseTime

timeLabelPanel

private PamPanel timeLabelPanel

specAxisPanel

private NoiseTabPanel.SpecPlotAxesPanel specAxisPanel

isViewer

private boolean isViewer

lastMouseX

private java.lang.Integer lastMouseX

lastMouseY

private java.lang.Integer lastMouseY

mouseMenu

private javax.swing.JPopupMenu mouseMenu
Constructor Detail

NoiseTabPanel

public NoiseTabPanel(NoiseControl noiseControl)
Method Detail

createMenu

public javax.swing.JMenu createMenu(java.awt.Frame parentFrame)
Specified by:
createMenu in interface PamTabPanel
Returns:
a JMeny for the panel

getPanel

public javax.swing.JComponent getPanel()
Specified by:
getPanel in interface PamTabPanel
Returns:
Reference to a graphics component that can be added to the view. This will typically be a JPanel or a JInternalFrame;

getToolBar

public javax.swing.JToolBar getToolBar()
Specified by:
getToolBar in interface PamTabPanel
Returns:
a JToolbas associated with this tab. This will only be displayed when the current tab is activated

selectionChanged

private void selectionChanged()

getCurrentNoiseSettings

private NoiseSettings getCurrentNoiseSettings()

newSettings

protected void newSettings()

channelIndexToNumber

private int channelIndexToNumber(int chanIndex)
Convert a channel index into a channel number

Parameters:
chanIndex - channel index
Returns:
channel number

newData

public void newData(NoiseDataUnit noiseData)

setAutoScale

private void setAutoScale()

autoFreqScale

private void autoFreqScale()

setSymbol

private void setSymbol(PamSymbol symbol,
                       int chan,
                       int iMeasure,
                       int iStat)

repaintPlots

public void repaintPlots()

sayStartTime

public void sayStartTime(long valueMillis)

sayMouseData

public void sayMouseData(java.lang.Integer x,
                         java.lang.Integer y)

showMenu

public void showMenu(java.awt.event.MouseEvent e)