Package Spectrogram
Class SpectrogramParameters
java.lang.Object
userDisplay.UserFrameParameters
Spectrogram.SpectrogramParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
public class SpectrogramParameters
extends UserFrameParameters
implements Serializable, Cloneable, ManagedParameters
These are the parameter settings for a single
spectrogram window, note tha a single spectrogram tab may have
multiple windows
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptiondouble[]
Limits of amplitude rangeboolean
int[]
To make a whistle detector type display with different overlays on each panel, channelList needs to be a list rather than a bit map so that each panel can, if it wants, display the same data.double
Display length in seconds.double[]
Frequency limits for displayboolean
boolean
flag to say don't show raw data in viewer mode.int
int
Used if timeScaleFixed is false to set the scaleboolean[]
boolean
boolean
Also show the waveform display under the spectrogramboolean
Fixed time scale, if this is false, then it's based on the number of pixels and a set number of slices per pixelboolean[]
boolean
Wraps display if this is true (defalt)Fields inherited from class userDisplay.UserFrameParameters
boundingRectangle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
channelUsers
(int iChannel) Get a bitmap of plot numbers which use a particular channel.clone()
int
Shouldn't be used, just there for legacy configurations.getOverlayDataInfo
(PamDataBlock dataBlock, int panelId) Get overlay data information for a given panel and datablock.Get a set of data that describes all of the parameters in a classvoid
setColourMap
(ColourArray.ColourArrayType colourMap)
-
Field Details
-
sourceName
-
windowName
-
nPanels
public int nPanels -
hideSidePanels
public boolean hideSidePanels -
channelList
public int[] channelListTo make a whistle detector type display with different overlays on each panel, channelList needs to be a list rather than a bit map so that each panel can, if it wants, display the same data.Note that channelList may actually refer to sequence numbers and not channels, depending on the FFT data source
-
frequencyLimits
public double[] frequencyLimitsFrequency limits for display -
amplitudeLimits
public double[] amplitudeLimitsLimits of amplitude range -
horizontalSplitLocation
-
hideViewerSpectrogram
public boolean hideViewerSpectrogramflag to say don't show raw data in viewer mode. -
wrapDisplay
public boolean wrapDisplayWraps display if this is true (defalt) -
timeScaleFixed
public boolean timeScaleFixedFixed time scale, if this is false, then it's based on the number of pixels and a set number of slices per pixel -
displayLength
public double displayLengthDisplay length in seconds. -
pixelsPerSlics
public int pixelsPerSlicsUsed if timeScaleFixed is false to set the scale -
showScale
public boolean showScale -
showWaveform
public boolean showWaveformAlso show the waveform display under the spectrogram -
autoScaleWaveform
public boolean autoScaleWaveform -
showPluginDisplay
public boolean[] showPluginDisplay -
useSpectrogramMarkObserver
public boolean[] useSpectrogramMarkObserver
-
-
Constructor Details
-
SpectrogramParameters
public SpectrogramParameters()
-
-
Method Details
-
channelUsers
public int channelUsers(int iChannel) Get a bitmap of plot numbers which use a particular channel. 0 means it's not used at all. 1, by panel 0, 3 by panels 0 and 1, etc.- Parameters:
iChannel
-- Returns:
-
getColourMap
-
setColourMap
-
clone
-
getOverlayDataInfo
Get overlay data information for a given panel and datablock.- Parameters:
dataBlock
- Data blockpanelId
- panel index / id- Returns:
- Overlay Data information.
-
getFftBlockIndex
public int getFftBlockIndex()Shouldn't be used, just there for legacy configurations. Data block should be identified only by name.- Returns:
- the fftBlockIndex
-
getParameterSet
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Overrides:
getParameterSet
in classUserFrameParameters
- Returns:
- description of the parameters in a class.
-