Package dataPlotsFX.scroller
Class TDAcousticScroller
java.lang.Object
pamScrollSystem.AbstractPamScroller
pamViewFX.fxNodes.pamScrollers.AbstractPamScrollerFX
pamViewFX.fxNodes.pamScrollers.acousticScroller.AcousticScrollerFX
dataPlotsFX.scroller.TDAcousticScroller
- All Implemented Interfaces:
Serializable
,PamSettings
,SettingsNameProvider
,DataTimeLimits
Subclass for the td display. Provides a specific type of navigation dialog for this scroller.
- Author:
- Jamie Macaulay
- See Also:
-
Property Summary
Properties inherited from class pamViewFX.fxNodes.pamScrollers.acousticScroller.AcousticScrollerFX
scrollerChanging, scrollMoving
-
Field Summary
Fields inherited from class pamViewFX.fxNodes.pamScrollers.acousticScroller.AcousticScrollerFX
isViewer, rangeObserver
-
Constructor Summary
ConstructorDescriptionTDAcousticScroller
(String name, javafx.geometry.Orientation orientation, int stepSizeMillis, long defaultLoadTime, boolean hasMenu, TDDisplayFX tdDisplay) Construct a PAMGUARD scroll bar which contains a main scroll bar bit and buttons for moving forward in large secScollbar name (used in scroll bar management) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataBlock
(PamDataBlock dataBlock) Add a datablock to the list for this scroller.void
addDataBlockGraphics
(PamDataBlock dataBlock) void
addRangeObserver
(VisibleRangeObserver timeRangeListener) The range spinner.void
Create select button.javafx.scene.layout.Pane
getNode()
Get the node which contain all controls for scrolling system.long
void
layoutScrollBarPane
(javafx.geometry.Orientation orientation) Layout the control pane containing scroll bar and buttons to navigate in time.void
Begins redrawing data hello in the scroll bar.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
setOrientation
(javafx.geometry.Orientation orientation) Set orientation for the scroller.void
setVisibleMillis
(long visibleAmount) Methods inherited from class pamViewFX.fxNodes.pamScrollers.acousticScroller.AcousticScrollerFX
addAcousticScrollGraphics, addNewPamData, anotherScrollerMovedInner, getAcousticScrollGraphics, getBinsPerPixel, getBlockIncrement, getCurrentGraphicsIndex, getMainPane, getNavigationPane, getScrollBarPane, getTimeAxis, getValueMillis, getValueMillisD, getVisibleAmount, getVisibleMillis, isScrollerChanging, loadScrollerData, pauseDataload, rangesChanged, removeAcousticScrollGraphics, removeRangeObserver, repaint, scrollerChangingProperty, scrollMovingProperty, setBlockIncrement, setCurrentGraphicsIndex, setDataGramColors, setRangeMillis, setSampleRate, setScrollerGraphics, setScrollRectVisible, setUnitIncrement, valueSetMillis
Methods inherited from class pamViewFX.fxNodes.pamScrollers.AbstractPamScrollerFX
createNavigationPane, getOrientation, getPageBackwardButton, getPageForwardButton, getSettingsButton, isShowing, openTimeNavigationDialogAWT, openTimeNavigationDialogFX
Methods inherited from class pamScrollSystem.AbstractPamScroller
addMenuParts, addObserver, anotherScrollerMovedOuter, coupledScrollerChanged, coupleScroller, destroyScroller, getDefaultLoadtime, getMaximumMillis, getMinimumMillis, getNumUsedDataBlocks, getObservers, getPageStep, getPamMenuParts, getRangeMillis, getScrollerCoupling, getScrollerData, getScrollManager, getSpecialLoadTimes, getStepSizeMillis, getUsedDataBlock, getVisibleEnd, isDataBlockUsed, isInSpecialList, notifyRangeChange, pageBack, pageForward, playbackStarted, playbackStopped, reLoad, removeAllDataBlocks, removeDataBlock, removeObserver, setPageStep, setScrollerCoupling, setStepSizeMillis, setValueMillis, startPlayback, stopPlayback, toString, uncoupleScroller
-
Constructor Details
-
TDAcousticScroller
public TDAcousticScroller(String name, javafx.geometry.Orientation orientation, int stepSizeMillis, long defaultLoadTime, boolean hasMenu, TDDisplayFX tdDisplay) Construct a PAMGUARD scroll bar which contains a main scroll bar bit and buttons for moving forward in large secScollbar name (used in scroll bar management)- Parameters:
orientation
- AbstractPamScroller.VERTICAL or AbstractPamScroller.HORIZONTALstepSizeMillis
- step size in milliseconds for scroller.defaultLoadTime
- default amount of data to load.hasMenu
- true if menu options should be shown in navigation area.owner
- The pamscroller window owner. Used to keep dialogs inside the TDDisplay window.
-
-
Method Details
-
setVisibleMillis
public void setVisibleMillis(long visibleAmount) - Overrides:
setVisibleMillis
in classAcousticScrollerFX
- Parameters:
visibleAmount
- the visibleAmount to set in millis
-
createSelectorButton
public void createSelectorButton()Create select button. -
addDataBlock
Description copied from class:AbstractPamScroller
Add a datablock to the list for this scroller.When the scroller is moved, data from data blocks in this list will re read from the database and binary stores. Other data will not be read.
- Overrides:
addDataBlock
in classAbstractPamScroller
- Parameters:
dataBlock
- a PamDataBlock
-
addDataBlockGraphics
-
layoutScrollBarPane
public void layoutScrollBarPane(javafx.geometry.Orientation orientation) Description copied from class:AcousticScrollerFX
Layout the control pane containing scroll bar and buttons to navigate in time.- Overrides:
layoutScrollBarPane
in classAcousticScrollerFX
- Parameters:
orientation
- - orientation of the time scroller.
-
setOrientation
public void setOrientation(javafx.geometry.Orientation orientation) Set orientation for the scroller.- Overrides:
setOrientation
in classAcousticScrollerFX
- Parameters:
orientation
- - orientation of the time scroller.
-
addRangeObserver
The range spinner.- Overrides:
addRangeObserver
in classAcousticScrollerFX
- Parameters:
timeRangeListener
-
-
getNode
public javafx.scene.layout.Pane getNode()Description copied from class:AbstractPamScrollerFX
Get the node which contain all controls for scrolling system.- Overrides:
getNode
in classAcousticScrollerFX
- Returns:
- the FX component to go into the GUI.
-
loadScrollerData
public void loadScrollerData()Description copied from class:AcousticScrollerFX
Begins redrawing data hello in the scroll bar.- Overrides:
loadScrollerData
in classAcousticScrollerFX
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
- Specified by:
restoreSettings
in interfacePamSettings
- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-