public class IDI_Display extends ClickDisplay implements PamObserver, PamSettings
Constructor and Description |
---|
IDI_Display(ClickControl clickControl,
ClickDisplayManager clickDisplayManager,
clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataString()
Creates a string of counts from the high-res and low-res histogram bins
(high-res histogram first, then low).
|
java.lang.String |
getHeaderString()
Creates a header string for the output file, based on the current high-
and low-res bin values (high-res histogram first, then low).
|
java.lang.String |
getName() |
java.lang.String |
getObserverName() |
PamObserver |
getObserverObject() |
long |
getRequiredDataHistory(PamObservable o,
java.lang.Object arg) |
java.io.Serializable |
getSettingsReference() |
long |
getSettingsVersion() |
java.lang.String |
getUnitName() |
java.lang.String |
getUnitType() |
void |
masterClockUpdate(long milliSeconds,
long sampleNumber) |
void |
noteNewSettings()
Class containing the axis, histogram and color bar
|
void |
pamStart()
On audio start, start the timer and create a new histogram object in the
array.
|
void |
pamStop()
called when user stops the audio capture
|
void |
removeObservable(PamObservable o)
called when an Observable (PamDataBlock) is removed from the system
|
boolean |
restoreSettings(PamControlledUnitSettings pamControlledUnitSettings) |
void |
setParameters()
Sets the axes parameters, based on the current IDI_DisplayParams object.
|
void |
setSampleRate(float sampleRate,
boolean notify)
New sample rate
|
void |
setTimer()
Creates a new timer and sets the schedule.
|
void |
update(PamObservable o,
PamDataUnit arg)
On new data, add ICI variable to current histogram
|
clickedOnClick, created, getClickDisplayInfo, offlineDataChanged
checkDualDisplay, getAxisPanel, getCopyMenuItem, getEastPanel, getFrame, getLeftPlotPanel, getNorthPanel, getPlotPanel, getRightPlotPanel, getSouthPanel, getWestPanel, repaint, setAxisPanel, setEastPanel, setFrame, setLeftPlotPanel, setNorthPanel, setPlotPanel, setRightPlotPanel, setSouthPanel, setWestPanel
public IDI_Display(ClickControl clickControl, ClickDisplayManager clickDisplayManager, clickDetector.ClickDisplayManager.ClickDisplayInfo clickDisplayInfo)
clickControl
- clickDisplayManager
- clickDisplayInfo
- public void setParameters()
public void setTimer()
public void pamStart()
pamStart
in class ClickDisplay
public void pamStop()
pamStop
in class ClickDisplay
public void update(PamObservable o, PamDataUnit arg)
update
in interface PamObserver
o
- Reference to the Observable (a PamDataBlock)arg
- Reference to the new PamDataUnitpublic java.lang.String getHeaderString()
public java.lang.String getDataString()
public void noteNewSettings()
noteNewSettings
in interface PamObserver
noteNewSettings
in class ClickDisplay
public java.lang.String getObserverName()
getObserverName
in interface PamObserver
public PamObserver getObserverObject()
getObserverObject
in interface PamObserver
public long getRequiredDataHistory(PamObservable o, java.lang.Object arg)
getRequiredDataHistory
in interface PamObserver
o
- PamObservable class requiring the dataarg
- optional argument from PamObservablepublic void masterClockUpdate(long milliSeconds, long sampleNumber)
masterClockUpdate
in interface PamObserver
public void removeObservable(PamObservable o)
PamObserver
removeObservable
in interface PamObserver
public void setSampleRate(float sampleRate, boolean notify)
PamObserver
setSampleRate
in interface PamObserver
notify
- Notify other PamObservers and PamObservables in the chain.public java.lang.String getName()
getName
in class PamFramePlots
public java.io.Serializable getSettingsReference()
getSettingsReference
in interface PamSettings
public long getSettingsVersion()
getSettingsVersion
in interface PamSettings
public java.lang.String getUnitName()
getUnitName
in interface PamSettings
public java.lang.String getUnitType()
getUnitType
in interface PamSettings
public boolean restoreSettings(PamControlledUnitSettings pamControlledUnitSettings)
restoreSettings
in interface PamSettings