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 int
The symbol has option to colour by channelsstatic final int
Has a line to colour.static final int
Save typing by adding has line and has line length together.static final int
Has a line length to change e.g bearings.static final int
The symbol has channelsstatic final int
Has a symbol e.g.static final int
Number 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 TypeMethodDescriptionvoid
addSymbolChnageListener
(SymbolChangeListener symbolChangeListener) Add a symbol chnage listenerint
addSymbolOption
(int symbolChoice) Add an option to the symbol managercolourChoiceName
(int iChoice) protected StandardSymbolChooser
createSymbolChooser
(String displayName, GeneralProjector projector) int
The number of available colour choices.boolean
hasSymbolOption
(int symbolChoice) void
Notify all listeners that a symbolChooser has changed.void
removeSymbolChnageListener
(SymbolChangeListener symbolChangeListener) Remove a symbol change listenerint
removeSymbolOption
(int symbolChoice) Check whether the symbol manager has a symbol option.void
setDefaultSymbol
(SymbolData defaultSymbol) void
setSpecialColourName
(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:
createSymbolChooser
in 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.
-