public class SpectrogramPlotInfo extends TDDataInfo implements SpectrogramParametersUser, HidingDialogChangeListener
UNITS_ANGLE, UNITS_TEMPERATURE
MORE_DIALOG_CLOSED
Constructor and Description |
---|
SpectrogramPlotInfo(TDDataProvider tdDataProvider,
PamFFTControl fftControl,
TDGraph tdGraph,
PamDataBlock pamDataBlock) |
Modifier and Type | Method and Description |
---|---|
void |
dialogChanged(int changeLevel,
java.lang.Object object)
Notification from a sliding dialog panel when something changes.
|
void |
drawData(int plotNumber,
java.awt.Graphics g,
java.awt.Rectangle windowRect,
int orientation,
PamAxis timeAxis,
long scrollStart,
PamAxis graphAxis)
Paint data into the graphics window.
|
boolean |
editOptions(java.awt.Window frame)
Edit options - generally involves throwing up a
dialog of some sort.
|
double[] |
getColours(double dBLevel)
Get the colour triplet for a particular db value.
|
java.lang.Double |
getDataValue(PamDataUnit pamDataUnit)
Gets a value for a specific data unit which should be in the
same units as the scale information.
|
FFTDataBlock |
getFftDataBlock() |
FFTDataBlock |
getFFTDataBlock() |
TDScaleInformation |
getFixedScaleInformation(int orientation) |
HidingDialogComponent |
getHidingDialogComponent()
Return a hiding dialog component which will get incorporated into
a larger tabbed sliding dialog.
|
TDScaleInformation |
getScaleInformation(int orientation,
boolean autoScale) |
SpectrogramParameters |
getSpectrogramParameters() |
java.io.Serializable |
getStoredSettings()
Get an object that will be packed up with the serialised settings
when information about a plot get's stored.
|
TDSymbolChooser |
getSymbolChooser() |
TDControl |
getTdControl() |
boolean |
hasOptions()
Has options that will result in a dialog.
|
void |
newFFTData(FFTDataUnit fftDataUnit)
Called when new FFT data arrive.
|
void |
removeData()
Called whenever a data line is removed from a graph, or when a graph is removed from
a plot.
|
void |
setSpectrogramParameters(SpectrogramParameters spectrogramParameters) |
boolean |
setStoredSettings(java.io.Serializable storedSettings)
Set settings which have been read back from storage (the psf file).
|
void |
timeRangeSpinnerChange(double oldValue,
double newValue)
Called when the time range spinner on the main display panel changes.
|
void |
timeScrollRangeChanged(long minimumMillis,
long maximumMillis)
Called in viewer mode when the time scroll range moves.
|
void |
timeScrollValueChanged(long valueMillis)
Called in viewer mode when the time scroller moves.
|
addDataUnits, clearDraw, drawDataUnit, drawHighLightData, getCurrentDataLine, getCurrentDataLineIndex, getDataBlock, getDataDimensions, getDataLineInfos, getDataName, getDataProvider, getShortName, getTdGraph, getToolTipText, hasAxisName, isShowing, notifyModelChanged, selectDataLine, setCurrentAxisName, setFixedScaleInformation, setShowing
public SpectrogramPlotInfo(TDDataProvider tdDataProvider, PamFFTControl fftControl, TDGraph tdGraph, PamDataBlock pamDataBlock)
public HidingDialogComponent getHidingDialogComponent()
TDDataInfo
getHidingDialogComponent
in class TDDataInfo
public void removeData()
TDDataInfo
removeData
in class TDDataInfo
public void newFFTData(FFTDataUnit fftDataUnit)
fftDataUnit
- public java.lang.Double getDataValue(PamDataUnit pamDataUnit)
TDDataInfo
getDataValue
in class TDDataInfo
public TDSymbolChooser getSymbolChooser()
getSymbolChooser
in class TDDataInfo
public void drawData(int plotNumber, java.awt.Graphics g, java.awt.Rectangle windowRect, int orientation, PamAxis timeAxis, long scrollStart, PamAxis graphAxis)
TDDataInfo
drawData
in class TDDataInfo
plotNumber
- plot numberg
- graphicswindowRect
- Window rectangle to draw inorientation
- orientationgraphAxis
- graph data axis for scaling.public boolean hasOptions()
TDDataInfo
hasOptions
in class TDDataInfo
public boolean editOptions(java.awt.Window frame)
TDDataInfo
editOptions
in class TDDataInfo
public TDScaleInformation getScaleInformation(int orientation, boolean autoScale)
getScaleInformation
in class TDDataInfo
public TDScaleInformation getFixedScaleInformation(int orientation)
getFixedScaleInformation
in class TDDataInfo
public java.io.Serializable getStoredSettings()
TDDataInfo
getStoredSettings
in class TDDataInfo
public boolean setStoredSettings(java.io.Serializable storedSettings)
TDDataInfo
setStoredSettings
in class TDDataInfo
public TDControl getTdControl()
public FFTDataBlock getFftDataBlock()
public double[] getColours(double dBLevel)
dBLevel
- public SpectrogramParameters getSpectrogramParameters()
getSpectrogramParameters
in interface SpectrogramParametersUser
public void setSpectrogramParameters(SpectrogramParameters spectrogramParameters)
setSpectrogramParameters
in interface SpectrogramParametersUser
public FFTDataBlock getFFTDataBlock()
getFFTDataBlock
in interface SpectrogramParametersUser
public void timeScrollValueChanged(long valueMillis)
TDDataInfo
Most data won't need to do anything here since they are already subscribed to the scroller and will get their data loaded from psf automatically.
timeScrollValueChanged
in class TDDataInfo
valueMillis
- new scroll value in millispublic void timeScrollRangeChanged(long minimumMillis, long maximumMillis)
TDDataInfo
Most data won't need to do anything here since they are already subscribed to the scroller and will get their data loaded from psf automatically.
timeScrollRangeChanged
in class TDDataInfo
minimumMillis
- new minimum in millismaximumMillis
- new maximum in millis.public void timeRangeSpinnerChange(double oldValue, double newValue)
TDDataInfo
timeRangeSpinnerChange
in class TDDataInfo
oldValue
- old value (seconds)newValue
- new value (seconds)public void dialogChanged(int changeLevel, java.lang.Object object)
HidingDialogChangeListener
dialogChanged
in interface HidingDialogChangeListener
changeLevel
- quick way of indicating levels of change. -ve numbers are used by the system. +ve ones can be used by programmer in a dialog specific context.
object
- an object if you need to send other information.