Package PamView.symbol
Class PamSymbolChooser
java.lang.Object
PamView.symbol.PamSymbolChooser
- Direct Known Subclasses:
CyclicColourSymbolChooser
,StandardSymbolChooser
Manage symbol choices for a single display and datablock.
- Author:
- dg50
-
Constructor Summary
ConstructorDescriptionPamSymbolChooser
(PamSymbolManager pamSymbolManager, PamDataBlock pamDataBlock, String displayName, GeneralProjector projector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSymbolModifier
(SymbolModifier symbolModifier) Add a symbol modifier.void
addSymbolModifier
(SymbolModifier symbolModifier, int position) Add a symbol modifier at a specific position in the list.void
addSymbolModifier
(SymbolModifier symbolModifier, Class insertAfter) Add a symbol modifier directly after a different symbol modifier of a given class.getFXOptionPane
(GeneralProjector projector) The JavaFX version of the option panel.getPamSymbol
(GeneralProjector projector, PamDataUnit dataUnit) getPamSymbolFX
(GeneralProjector projector, PamDataUnit dataUnit) The generla projector associated with the symbol chooser.getSwingOptionsPanel
(GeneralProjector projector) Swing version of option pane.abstract SymbolData
getSymbolChoice
(GeneralProjector projector, PamDataUnit dataUnit) Get the symbol choice for a data unit.Get the full list of symbol modifiers.abstract PamSymbolOptions
hasSymbolModifier
(SymbolModifier symbolModifier) Check to see if a symbol modifier of a given class already exists.boolean
removeSymbolModifier
(Class modifierClass) Remove a symbol modifier based on it's class.void
setProjector
(GeneralProjector projector) Set the projector.abstract void
setSymbolOptions
(PamSymbolOptions symbolOptions)
-
Constructor Details
-
PamSymbolChooser
public PamSymbolChooser(PamSymbolManager pamSymbolManager, PamDataBlock pamDataBlock, String displayName, GeneralProjector projector)
-
-
Method Details
-
getSymbolChoice
Get the symbol choice for a data unit. e.g. clicks- Parameters:
projector
-dataUnit
-- Returns:
-
getPamSymbolFX
-
getPamSymbol
-
getPamDataBlock
- Returns:
- the pamDataBlock
-
getDisplayName
- Returns:
- the displayName
-
getSwingOptionsPanel
Swing version of option pane. Panel which contains options to change symbol types and colours depending on detection type.- Parameters:
projector
- - the geenral projector- Returns:
- the JavaFX options pane for symbols.
-
getFXOptionPane
The JavaFX version of the option panel. Pane which contains options to change symbol types and colours depending on detection type.- Parameters:
projector
- - the geenral projector- Returns:
- the JavaFX options pane for symbols.
-
getProjector
The generla projector associated with the symbol chooser.- Returns:
- the projector
-
setProjector
Set the projector. Important for getting the right display options such as line length on the map- Parameters:
projector
- projector to set.
-
hasSymbolModifier
Check to see if a symbol modifier of a given class already exists. May have to change this so that it's by name since only one of each class is allowed in current system.- Parameters:
modifierClass
-- Returns:
-
addSymbolModifier
Add a symbol modifier. Don't add if one of same class already exists. Generally this function is called from the symbol manager which will add the appropriate additional modifiers.- Parameters:
symbolModifier
-
-
addSymbolModifier
Add a symbol modifier at a specific position in the list. Can be used to get a module specific modifier higher up the list, e.g. click type modifier coming before click event modifier.- Parameters:
symbolModifier
- symbol modifierposition
- position, 0 = first in list
-
addSymbolModifier
Add a symbol modifier directly after a different symbol modifier of a given class. Can use this function to put a symbol modifier as a specific position in the list. If a modifier of the other class can't be found, it will be put at the end of the list.- Parameters:
symbolModifier
- Symbol modifierinsertAfter
- Class of the symbol modifier that should be immediately before this one.
-
getSymbolModifiers
Get the full list of symbol modifiers. don't add to them here though, this is just for use in the dialog and other internal functions.- Returns:
- full list of symbol modifiers.
-
removeSymbolModifier
Remove a symbol modifier based on it's class.- Parameters:
modifierClass
-- Returns:
- true if it existed.
-
setSymbolOptions
-
getSymbolOptions
-