Package PamView.symbol
Class StandardSymbolChooser
java.lang.Object
PamView.symbol.PamSymbolChooser
PamView.symbol.StandardSymbolChooser
- Direct Known Subclasses:
ClickDetSymbolChooser
,ClickEventSymbolChooser
,LoggerSymbolChooser
,WhistleSymbolChooser
-
Constructor Summary
ConstructorDescriptionStandardSymbolChooser
(StandardSymbolManager standardSymbolManager, PamDataBlock pamDataBlock, String displayName, SymbolData defaultSymbol, GeneralProjector projector) -
Method Summary
Modifier and TypeMethodDescriptionCreate 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.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
- 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:
-
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
-