Class AbstractMeasurementController
java.lang.Object
gov.llnl.gnem.apps.coda.calibration.gui.controllers.AbstractMeasurementController
- All Implemented Interfaces:
MapListeningController
,RefreshableController
,ScreenshotEnabledController
- Direct Known Subclasses:
MeasuredMwsController
,SiteController
public abstract class AbstractMeasurementController
extends Object
implements MapListeningController, RefreshableController, ScreenshotEnabledController
The AbstractMeasurementController defines the common shared displays used in
both the Site and Measurement views.
Generally containers all logic, data access, and plotting code necessary to
display a seismic source spectra for each event along with summary figures
for the dataset as a whole.
-
Field Summary
Modifier and TypeFieldDescriptionprotected javafx.scene.layout.StackPane
protected javafx.scene.layout.StackPane
protected javafx.scene.layout.StackPane
protected javafx.scene.control.ComboBox<String>
protected javafx.scene.control.Button
protected javafx.scene.control.ContextMenu
protected javafx.collections.ObservableList<MeasuredMwDetails>
protected javafx.scene.layout.StackPane
protected ParameterClient
protected final PlotFactory
protected EventClient
protected javafx.scene.control.Tab
protected javafx.scene.layout.StackPane
protected SpectraClient
protected List<SpectraPlotController>
protected List<SpectraMeasurement>
protected javafx.scene.layout.StackPane
protected javafx.scene.layout.StackPane
protected HiddenHeaderTableView<Pair<String,
String>> protected WaveformClient
protected javafx.scene.control.Button
protected javafx.scene.control.Button
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMeasurementController
(SpectraClient spectraClient, ParameterClient paramClient, EventClient referenceEventClient, WaveformClient waveformClient, SymbolStyleMapFactory styleFactory, GeoMap map, MapPlottingUtilities iconFactory, ParamExporter paramExporter, PlotFactory plotFactory, com.google.common.eventbus.EventBus bus) -
Method Summary
Modifier and TypeMethodDescriptionprotected double
centerFreq
(Double lowFrequency, Double highFrequency) protected void
void
protected abstract String
protected abstract List<MeasuredMwDetails>
protected PlotPoint
getPlotPoint
(String key, boolean active) protected PropertyChangeListener
getPlotpointObserver
(Supplier<Map<javafx.geometry.Point2D, SpectraMeasurement>> symbolMapSupplier) protected javafx.geometry.Point2D
getPoint2D
(Symbol sym) protected abstract List<SpectraMeasurement>
protected void
handlePlotObjectClicked
(PlotObjectClick poc, Function<javafx.geometry.Point2D, SpectraMeasurement> measurementFunc) void
protected void
void
protected void
protected abstract void
runGuiUpdate
(Runnable runnable) protected abstract void
setActive
(Set<Waveform> waveforms, List<javafx.geometry.Point2D> points, boolean active, BiConsumer<List<javafx.geometry.Point2D>, Boolean> activationFunc) protected void
setSymbolsActive
(List<javafx.geometry.Point2D> points, boolean active) void
setVisible
(boolean visible)
-
Field Details
-
resultsTab
protected javafx.scene.control.Tab resultsTab -
mwPlotPane
protected javafx.scene.layout.StackPane mwPlotPane -
stressPlotPane
protected javafx.scene.layout.StackPane stressPlotPane -
sdPlotPane
protected javafx.scene.layout.StackPane sdPlotPane -
energyVsMomentPane
protected javafx.scene.layout.StackPane energyVsMomentPane -
apparentStressVsMomentPane
protected javafx.scene.layout.StackPane apparentStressVsMomentPane -
cornerFreqVsMomentPane
protected javafx.scene.layout.StackPane cornerFreqVsMomentPane -
spectraPlotPanel
protected javafx.scene.layout.StackPane spectraPlotPanel -
evidCombo
-
summaryTable
-
summaryNameCol
-
summaryValueCol
-
spectralMeasurements
-
spectraClient
-
paramClient
-
referenceEventClient
-
waveformClient
-
mwParameters
-
xAxisShrink
protected javafx.scene.control.Button xAxisShrink -
yAxisShrink
protected javafx.scene.control.Button yAxisShrink -
exportSpectraBtn
protected javafx.scene.control.Button exportSpectraBtn -
spectraControllers
-
plotFactory
-
-
Constructor Details
-
AbstractMeasurementController
protected AbstractMeasurementController(SpectraClient spectraClient, ParameterClient paramClient, EventClient referenceEventClient, WaveformClient waveformClient, SymbolStyleMapFactory styleFactory, GeoMap map, MapPlottingUtilities iconFactory, ParamExporter paramExporter, PlotFactory plotFactory, com.google.common.eventbus.EventBus bus)
-
-
Method Details
-
getDisplayName
-
getFitSpectra
-
setActive
-
getSpectraData
-
runGuiUpdate
protected abstract void runGuiUpdate(Runnable runnable) throws InvocationTargetException, InterruptedException -
getEvents
-
initialize
public void initialize() -
getPoint2D
-
clearSpectraPlots
protected void clearSpectraPlots() -
getPlotPoint
-
centerFreq
-
reloadData
protected void reloadData() -
preloadData
protected void preloadData() -
refreshView
public void refreshView()- Specified by:
refreshView
in interfaceMapListeningController
-
getRefreshFunction
- Specified by:
getRefreshFunction
in interfaceRefreshableController
-
exportSpectra
public void exportSpectra() -
getScreenshotFunction
- Specified by:
getScreenshotFunction
in interfaceScreenshotEnabledController
-
setSymbolsActive
-
handlePlotObjectClicked
protected void handlePlotObjectClicked(PlotObjectClick poc, Function<javafx.geometry.Point2D, SpectraMeasurement> measurementFunc) -
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceMapListeningController
-
getPlotpointObserver
protected PropertyChangeListener getPlotpointObserver(Supplier<Map<javafx.geometry.Point2D, SpectraMeasurement>> symbolMapSupplier)
-