Package PamView.symbol.modifier
Class PeakFreqModifier
java.lang.Object
PamView.symbol.modifier.SymbolModifier
PamView.symbol.modifier.PeakFreqModifier
Peak frequency symbol modifier. Colours a symbol by it's peak frequency.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
FieldsFields inherited from class PamView.symbol.modifier.SymbolModifier
symbolModifierParams - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidCheck the correct colour array is being used and, if not, change it.Get the JavaFX symbol options pane that has options for the symbol pane.getSymbolData(GeneralProjector projector, PamDataUnit dataUnit) This is the symbol data to use if this modifier were to change everything.Get the symbol modifier parameters associated with the symbol modifier.modifySymbol(SymbolData symbolData, GeneralProjector projector, PamDataUnit dataUnit) Modify the symbol.voidsetSymbolModifierParams(SymbolModifierParams symbolModifierParams) Set the symbol modifier paramters.Methods inherited from class PamView.symbol.modifier.SymbolModifier
canModify, getModifierOptionsMenu, getModifyableBits, getName, getSymbolChooser, getToolTipText, setName, setSelectionBit, setToolTipText, showOptionsDialog 
- 
Field Details
- 
PEAK_FREQ_MODIFIER_NAME
- See Also:
 
 
 - 
 - 
Constructor Details
- 
PeakFreqModifier
 
 - 
 - 
Method Details
- 
modifySymbol
public SymbolData modifySymbol(SymbolData symbolData, GeneralProjector projector, PamDataUnit dataUnit) Description copied from class:SymbolModifierModify the symbol. In it's basic form it calls getSymbolData to get a totally fresh symbol, then copies over only the bits of information specified in modifyBits- Overrides:
 modifySymbolin classSymbolModifier- Parameters:
 symbolData-projector-dataUnit-- Returns:
 - modified symbol. Must never be null.
 
 - 
getSymbolData
Description copied from class:SymbolModifierThis is the symbol data to use if this modifier were to change everything. the Symbolchooser will actually be calling the modifySymbol function, which calls this, then based on which bits are set for modification, will transfer over the appropriate information.Must be able to respond to a null projector and dataUnit for tree vies.
- Specified by:
 getSymbolDatain classSymbolModifier- Parameters:
 projector-dataUnit-- Returns:
 
 - 
checkColourArray
public void checkColourArray()Check the correct colour array is being used and, if not, change it. - 
getOptionsPane
Description copied from class:SymbolModifierGet the JavaFX symbol options pane that has options for the symbol pane.- Overrides:
 getOptionsPanein classSymbolModifier- Returns:
 - the symbol options pane.
 
 - 
getDialogPanel
- Overrides:
 getDialogPanelin classSymbolModifier
 - 
getSymbolModifierParams
Description copied from class:SymbolModifierGet the symbol modifier parameters associated with the symbol modifier.Note that this function should create a new instance of the settings class if the settings class is null. This allows subclasses to override this function to return custom parameter objects.
- Overrides:
 getSymbolModifierParamsin classSymbolModifier- Returns:
 - the symbol modifier parameters.
 
 - 
setSymbolModifierParams
Description copied from class:SymbolModifierSet the symbol modifier paramters.- Overrides:
 setSymbolModifierParamsin classSymbolModifier- Parameters:
 symbolModifierParams- - the symbol modifiers paramters.
 
 -