clickDetector
Class WignerPlot

java.lang.Object
  extended by Layout.PamFramePlots
      extended by clickDetector.ClickDisplay
          extended by clickDetector.WignerPlot
All Implemented Interfaces:
PamSettings

public class WignerPlot
extends ClickDisplay
implements PamSettings


Nested Class Summary
(package private)  class WignerPlot.MouseFuncs
           
(package private)  class WignerPlot.PlotOptions
           
(package private)  class WignerPlot.SelectChannel
           
(package private)  class WignerPlot.WignerAxes
           
(package private)  class WignerPlot.WignerGraph
           
 
Field Summary
private  ClickControl clickControl
           
private  ColourArray colorArray
           
private  ClickDetection lastClick
           
private static int NCOLOURS
           
private  int plottedChan
           
private  PamAxis southAxis
           
private  PamAxis westAxis
           
private  WignerPlot.WignerAxes wignerAxes
           
private  double[][] wignerData
           
private  WignerPlot.WignerGraph wignerGraph
           
private  java.awt.image.BufferedImage wignerImage
           
private  double wignerMax
           
private  double wignerMin
           
private  WignerPlotOptions wignerPlotOptions
           
 
Fields inherited from class clickDetector.ClickDisplay
clickDisplayInfo, clickDisplayManager
 
Constructor Summary
WignerPlot(ClickControl clickControl, ClickDisplayManager clickDisplayManager, ClickDisplayManager.ClickDisplayInfo clickDisplayInfo)
           
 
Method Summary
 void clickedOnClick(ClickDetection click)
           
private  void createImage()
           
private  void createPlot(int chan)
           
 java.lang.String getName()
           
 java.io.Serializable getSettingsReference()
           
 long getSettingsVersion()
           
 java.lang.String getUnitName()
           
 java.lang.String getUnitType()
           
 void noteNewSettings()
           
 boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
           
 
Methods inherited from class clickDetector.ClickDisplay
created, getClickDisplayInfo, offlineDataChanged, pamStart
 
Methods inherited from class Layout.PamFramePlots
getAxisPanel, getCopyMenuItem, getEastPanel, getFrame, getNorthPanel, getPlotPanel, getSouthPanel, getWestPanel, repaint, setAxisPanel, setEastPanel, setFrame, setNorthPanel, setPlotPanel, setSouthPanel, setWestPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clickControl

private ClickControl clickControl

wignerAxes

private WignerPlot.WignerAxes wignerAxes

wignerGraph

private WignerPlot.WignerGraph wignerGraph

colorArray

private ColourArray colorArray

NCOLOURS

private static final int NCOLOURS
See Also:
Constant Field Values

southAxis

private PamAxis southAxis

westAxis

private PamAxis westAxis

wignerPlotOptions

private WignerPlotOptions wignerPlotOptions

lastClick

private ClickDetection lastClick

wignerData

private double[][] wignerData

wignerMin

private double wignerMin

wignerMax

private double wignerMax

wignerImage

private java.awt.image.BufferedImage wignerImage

plottedChan

private int plottedChan
Constructor Detail

WignerPlot

public WignerPlot(ClickControl clickControl,
                  ClickDisplayManager clickDisplayManager,
                  ClickDisplayManager.ClickDisplayInfo clickDisplayInfo)
Method Detail

noteNewSettings

public void noteNewSettings()
Specified by:
noteNewSettings in class ClickDisplay

getName

public java.lang.String getName()
Specified by:
getName in class PamFramePlots

clickedOnClick

public void clickedOnClick(ClickDetection click)
Overrides:
clickedOnClick in class ClickDisplay

createPlot

private void createPlot(int chan)

createImage

private void createImage()

getSettingsReference

public java.io.Serializable getSettingsReference()
Specified by:
getSettingsReference in interface PamSettings
Returns:
The serialisable object that will be stored

getSettingsVersion

public long getSettingsVersion()
Specified by:
getSettingsVersion in interface PamSettings
Returns:
An integer version number for the settings

getUnitName

public java.lang.String getUnitName()
Specified by:
getUnitName in interface PamSettings
Returns:
A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.

getUnitType

public java.lang.String getUnitType()
Specified by:
getUnitType in interface PamSettings
Returns:
A Name specific to the type, e.g. Glick detector

restoreSettings

public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
Specified by:
restoreSettings in interface PamSettings
Returns:
true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required