Package PamView.symbol
Class StandardSymbolChooser
java.lang.Object
PamView.symbol.PamSymbolChooser
PamView.symbol.StandardSymbolChooser
- Direct Known Subclasses:
ClickDetSymbolChooser
,ClickEventSymbolChooser
,LoggerSymbolChooser
,WhistleSymbolChooser
-
Constructor Summary
ConstructorsConstructorDescriptionStandardSymbolChooser
(StandardSymbolManager standardSymbolManager, PamDataBlock pamDataBlock, String displayName, SymbolData defaultSymbol, GeneralProjector projector) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fullsumbolOptionsDialog
(Window frame, SymbolUpdateMonitor component) Create default symbol data.Get the current fixed signal prior to any modification.getFXOptionPane
(GeneralProjector projector) The JavaFX version of the option panel.double
Get the map line length.getQuickMenuItems
(Window frame, SymbolUpdateMonitor component, int whatCanChange, boolean andDetails, boolean andSuperDetoptions) getQuickMenuItems
(Window frame, SymbolUpdateMonitor component, String prefix, int whatCanChange, boolean andDetails) Get some easy to use menu items which can be incorporated into a Swing (or converted to FX) menu, e.g.getSwingOptionsPanel
(GeneralProjector projector) Swing version of option pane.getSymbolChoice
(GeneralProjector projector, PamDataUnit dataUnit) Get the symbol choice for a data unit.Get the symbol manager.protected void
selectSymbolModifier
(ActionEvent e, SymbolUpdateMonitor component, SymbolModifier modifier, int whatCanChange) Called when a modifiers main menu item is selected.void
setSymbolOptions
(PamSymbolOptions symbolOptions) boolean
showLineLengthOption
(GeneralProjector projector) boolean
Show lines to detections that have a lat long (or range invalid input: '&' bearing).Methods inherited from class PamView.symbol.PamSymbolChooser
addSymbolModifier, addSymbolModifier, addSymbolModifier, getDisplayName, getPamDataBlock, getPamSymbol, getPamSymbolFX, getProjector, getSymbolModifiers, hasSymbolModifier, removeSymbolModifier, setProjector
-
Constructor Details
-
StandardSymbolChooser
public StandardSymbolChooser(StandardSymbolManager standardSymbolManager, PamDataBlock pamDataBlock, String displayName, SymbolData defaultSymbol, GeneralProjector projector)
-
-
Method Details
-
getFixedSymbol
Get the current fixed signal prior to any modification.- Returns:
- the fixed symbol.
-
getSymbolChoice
Description copied from class:PamSymbolChooser
Get the symbol choice for a data unit. e.g. clicks- Specified by:
getSymbolChoice
in classPamSymbolChooser
- Parameters:
projector
-dataUnit
-- Returns:
-
getQuickMenuItems
public ArrayList<JMenuItem> getQuickMenuItems(Window frame, SymbolUpdateMonitor component, int whatCanChange, boolean andDetails, boolean andSuperDetoptions) -
getQuickMenuItems
public ArrayList<JMenuItem> getQuickMenuItems(Window frame, SymbolUpdateMonitor component, String prefix, int whatCanChange, boolean andDetails) Get some easy to use menu items which can be incorporated into a Swing (or converted to FX) menu, e.g. in the click detector where we want to still quickly flick between the different colour options.- Returns:
-
selectSymbolModifier
protected void selectSymbolModifier(ActionEvent e, SymbolUpdateMonitor component, SymbolModifier modifier, int whatCanChange) Called when a modifiers main menu item is selected.
Its not very clear what to do here, whether to select just that one, or to toggle its state or what. Probably really need a new menu to pop up with checkboxes for the different options ? Might override this for the click detector so that we can easily recreate the existing functionality of the old system.- Parameters:
e
-component
-modifier
-whatCanChange
-
-
fullsumbolOptionsDialog
-
getDefaultSymbol
Create default symbol data.- Returns:
- default symvoil, data.
-
showLineLengthOption
-
getSwingOptionsPanel
Description copied from class:PamSymbolChooser
Swing version of option pane. Panel which contains options to change symbol types and colours depending on detection type.- Overrides:
getSwingOptionsPanel
in classPamSymbolChooser
- Parameters:
projector
- - the geenral projector- Returns:
- the JavaFX options pane for symbols.
-
getFXOptionPane
Description copied from class:PamSymbolChooser
The JavaFX version of the option panel. Pane which contains options to change symbol types and colours depending on detection type.- Overrides:
getFXOptionPane
in classPamSymbolChooser
- Parameters:
projector
- - the geenral projector- Returns:
- the JavaFX options pane for symbols.
-
getSymbolOptions
- Specified by:
getSymbolOptions
in classPamSymbolChooser
- Returns:
- the symbolOptions
-
getMapLineLength
public double getMapLineLength()Get the map line length.- Returns:
- the default map line length
-
showLinesToLatLongs
public boolean showLinesToLatLongs()Show lines to detections that have a lat long (or range invalid input: '&' bearing). Hiding these can make the map a lot less cluttered.- Returns:
- true if lines are to be drawn.
-
setSymbolOptions
- Specified by:
setSymbolOptions
in classPamSymbolChooser
-
getSymbolManager
Get the symbol manager.- Returns:
- the symbol manager
-