depthReadout
Class DepthSidePanel

java.lang.Object
  extended by depthReadout.DepthSidePanel
All Implemented Interfaces:
PamObserver, PamSidePanel

public class DepthSidePanel
extends java.lang.Object
implements PamSidePanel, PamObserver


Nested Class Summary
(package private)  class DepthSidePanel.DepthPanel
           
private  class DepthSidePanel.GraphAxisPanel
           
private  class DepthSidePanel.GraphPanel
           
 
Field Summary
private  DepthControl depthControl
           
(package private)  DepthDataBlock depthDataBlock
           
private  DepthSidePanel.DepthPanel depthPanel
           
(package private)  DepthSidePanel.GraphAxisPanel graphAxisPanel
           
(package private)  double graphTScale
           
(package private)  double graphVScale
           
(package private)  int nSensors
           
private  int panelLifetime
           
(package private)  long viewEnd
           
(package private)  long viewStart
           
 
Constructor Summary
DepthSidePanel(DepthControl depthControl)
           
 
Method Summary
private  void fillFields(javax.swing.JTextField[] fields, double[] data, java.lang.String format)
           
 java.lang.String getObserverName()
           
 PamObserver getObserverObject()
           
 javax.swing.JComponent getPanel()
           
 long getRequiredDataHistory(PamObservable o, java.lang.Object arg)
           
 void masterClockUpdate(long milliSeconds, long sampleNumber)
           
protected  void newSettings()
           
protected  void newViewTimes()
           
 void noteNewSettings()
           
 void removeObservable(PamObservable o)
          called when an Observable (PamDataBlock) is removed from the system
 void rename(java.lang.String newName)
           
 void setSampleRate(float sampleRate, boolean notify)
          New sample rate
 void update(PamObservable o, PamDataUnit arg)
          Informs the PamObserver that new data have been added to the Observable class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

depthControl

private DepthControl depthControl

depthPanel

private DepthSidePanel.DepthPanel depthPanel

panelLifetime

private int panelLifetime

nSensors

int nSensors

graphAxisPanel

DepthSidePanel.GraphAxisPanel graphAxisPanel

depthDataBlock

DepthDataBlock depthDataBlock

graphVScale

double graphVScale

graphTScale

double graphTScale

viewStart

long viewStart

viewEnd

long viewEnd
Constructor Detail

DepthSidePanel

public DepthSidePanel(DepthControl depthControl)
Method Detail

getPanel

public javax.swing.JComponent getPanel()
Specified by:
getPanel in interface PamSidePanel
Returns:
Reference to a graphics component that can be added to the view. This will typically be a JPanel or a JInternalFrame; The component will be displayed to the side of the main tab control.

getObserverObject

public PamObserver getObserverObject()
Specified by:
getObserverObject in interface PamObserver
Returns:
the actual observer. In most cases concrete classes will just return 'this' in response. The exception is the Threaded observer, which will return the single thread observer.

rename

public void rename(java.lang.String newName)
Specified by:
rename in interface PamSidePanel

newSettings

protected void newSettings()

getObserverName

public java.lang.String getObserverName()
Specified by:
getObserverName in interface PamObserver

getRequiredDataHistory

public long getRequiredDataHistory(PamObservable o,
                                   java.lang.Object arg)
Specified by:
getRequiredDataHistory in interface PamObserver
Parameters:
o - PamObservable class requiring the data
arg - optional argument from PamObservable
Returns:
time in milliseconds requried by data held in PamObservable

noteNewSettings

public void noteNewSettings()
Specified by:
noteNewSettings in interface PamObserver

removeObservable

public void removeObservable(PamObservable o)
Description copied from interface: PamObserver
called when an Observable (PamDataBlock) is removed from the system

Specified by:
removeObservable in interface PamObserver

setSampleRate

public void setSampleRate(float sampleRate,
                          boolean notify)
Description copied from interface: PamObserver
New sample rate

Specified by:
setSampleRate in interface PamObserver
notify - Notify other PamObservers and PamObservables in the chain.

masterClockUpdate

public void masterClockUpdate(long milliSeconds,
                              long sampleNumber)
Specified by:
masterClockUpdate in interface PamObserver

update

public void update(PamObservable o,
                   PamDataUnit arg)
Description copied from interface: PamObserver
Informs the PamObserver that new data have been added to the Observable class

Specified by:
update in interface PamObserver
Parameters:
o - Reference to the Observable (a PamDataBlock)
arg - Reference to the new PamDataUnit

fillFields

private void fillFields(javax.swing.JTextField[] fields,
                        double[] data,
                        java.lang.String format)

newViewTimes

protected void newViewTimes()