Package PamView.symbol
Class StandardSymbolManager
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider
- Direct Known Subclasses:
 ClickDetSymbolManager,ClickTrainSymbolManager,ClipSymbolManager,CPODSymbolManager,DLGroupSymbolManager,DLSymbolManager,GPLSymbolManager,Group3DSymbolManager,LoggerSymbolManager,PredictionSymbolManager,RoccaSymbolManager,RWESymbolManager,SuperDetectionSymbolManager,SymbolOnlyManager,UnconfirmedCTSymbolManager,WhistleSymbolManager
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe symbol has option to colour by channelsstatic final intHas a line to colour.static final intSave typing by adding has line and has line length together.static final intHas a line length to change e.g bearings.static final intThe symbol has channelsstatic final intHas a symbol e.g.static final intNumber of standard colour choicesFields inherited from class PamView.symbol.PamSymbolManager
GENERICNAME - 
Constructor Summary
ConstructorsConstructorDescriptionStandardSymbolManager(PamDataBlock pamDataBlock, SymbolData defaultSymbol) Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol.StandardSymbolManager(PamDataBlock pamDataBlock, SymbolData defaultSymbol, boolean hasChannelOption) Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol.StandardSymbolManager(PamDataBlock pamDataBlock, SymbolData defaultSymbol, boolean hasChannelOption, String specialColourName) Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol.StandardSymbolManager(PamDataBlock pamDataBlock, SymbolData defaultSymbol, String specialColourName) Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol. - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddSymbolChnageListener(SymbolChangeListener symbolChangeListener) Add a symbol chnage listenerintaddSymbolOption(int symbolChoice) Add an option to the symbol managercolourChoiceName(int iChoice) protected StandardSymbolChoosercreateSymbolChooser(String displayName, GeneralProjector projector) intThe number of available colour choices.booleanhasSymbolOption(int symbolChoice) voidNotify all listeners that a symbolChooser has changed.voidremoveSymbolChnageListener(SymbolChangeListener symbolChangeListener) Remove a symbol change listenerintremoveSymbolOption(int symbolChoice) Check whether the symbol manager has a symbol option.voidsetDefaultSymbol(SymbolData defaultSymbol) voidsetSpecialColourName(String specialColourName) Methods inherited from class PamView.symbol.PamSymbolManager
addAnnotationModifiers, addSymbolModifiers, clearChoosers, getFXOptionsPane, getManagedSymbolData, getPamDataBlock, getSettingsReference, getSettingsVersion, getSwingOptionsPanel, getSymbolChooser, getUnitName, getUnitType, globalClear, restoreSettings 
- 
Field Details
- 
HAS_CHANNEL_OPTIONS
public static final int HAS_CHANNEL_OPTIONSThe symbol has option to colour by channels- See Also:
 
 - 
HAS_SPECIAL_COLOUR
public static final int HAS_SPECIAL_COLOURThe symbol has channels- See Also:
 
 - 
HAS_LINE
public static final int HAS_LINEHas a line to colour. e.g. whistles or bearing- See Also:
 
 - 
HAS_LINE_LENGTH
public static final int HAS_LINE_LENGTHHas a line length to change e.g bearings.- See Also:
 
 - 
HAS_LINE_AND_LENGTH
public static final int HAS_LINE_AND_LENGTHSave typing by adding has line and has line length together.- See Also:
 
 - 
HAS_SYMBOL
public static final int HAS_SYMBOLHas a symbol e.g. clicks and whistles.- See Also:
 
 - 
NUM_STANDARD_CHOICES
public static final int NUM_STANDARD_CHOICESNumber of standard colour choices- See Also:
 
 
 - 
 - 
Constructor Details
- 
StandardSymbolManager
Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol. Enabling colouring by channel is set to true and the special colour names is set to null.- Parameters:
 pamDataBlock- Data BlockdefaultSymbol- Default Symbol
 - 
StandardSymbolManager
public StandardSymbolManager(PamDataBlock pamDataBlock, SymbolData defaultSymbol, boolean hasChannelOption) Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol. Enabling colouring by channel is set to true and the special colour names is set to null.- Parameters:
 pamDataBlock- Data BlockdefaultSymbol- Default SymbolhasChannelOption-
 - 
StandardSymbolManager
public StandardSymbolManager(PamDataBlock pamDataBlock, SymbolData defaultSymbol, boolean hasChannelOption, String specialColourName) Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol.- Parameters:
 pamDataBlock- Data BlockdefaultSymbol- Default SymbolhasChannelOption- colour by channel option is availablespecialColourName- colour by special name is available.
 - 
StandardSymbolManager
public StandardSymbolManager(PamDataBlock pamDataBlock, SymbolData defaultSymbol, String specialColourName) Constructor for a standard symbol manager, requiring an associated datablock and a standard symbol. Enabling colouring by channel is set to true and the special colour names is set to null.- Parameters:
 pamDataBlock- Data BlockdefaultSymbol- Default SymbolspecialColourName-
 
 - 
 - 
Method Details
- 
createSymbolChooser
- Specified by:
 createSymbolChooserin classPamSymbolManager<StandardSymbolChooser>
 - 
getSpecialColourName
- Returns:
 - the specialColourName
 
 - 
setSpecialColourName
- Parameters:
 specialColourName- the specialColourName to set
 - 
colourChoiceName
 - 
getDefaultSymbol
- Returns:
 - the defaultSymbol
 
 - 
setDefaultSymbol
- Parameters:
 defaultSymbol- the defaultSymbol to set
 - 
addSymbolOption
public int addSymbolOption(int symbolChoice) Add an option to the symbol manager- Parameters:
 flag- - integer flag.- Returns:
 - true if the manager has the option enabled.
 
 - 
removeSymbolOption
public int removeSymbolOption(int symbolChoice) Check whether the symbol manager has a symbol option.- Parameters:
 flag- - integer flag.- Returns:
 - true if the manager has the option enabled.
 
 - 
hasSymbolOption
public boolean hasSymbolOption(int symbolChoice) - Parameters:
 symbolChoice-
 - 
addSymbolChnageListener
Add a symbol chnage listener- Parameters:
 symbolChangeListener- the
 - 
removeSymbolChnageListener
Remove a symbol change listener- Parameters:
 symbolChangeListener- the
 - 
notifySymbolListeners
Notify all listeners that a symbolChooser has changed.- Parameters:
 chooser- the chooser which has changed.
 - 
getNColourChoices
public int getNColourChoices()The number of available colour choices.- Returns:
 - the number of colour choices.
 
 
 -