Package pamScrollSystem
Class ScrollPaneAddon
java.lang.Object
pamScrollSystem.AbstractPamScroller
pamScrollSystem.AbstractPamScrollerAWT
pamScrollSystem.ScrollPaneAddon
- All Implemented Interfaces:
Serializable
,DataTimeLimits
Small set of scroll controls which can be inserted into any window for
controlling the loading of data in viewer mode. does not contain a
scroll bar, just the data navigation arrows.
- Author:
- Doug Gillespie
- See Also:
-
Field Summary
Fields inherited from class pamScrollSystem.AbstractPamScrollerAWT
HORIZONTAL, VERTICAL
-
Constructor Summary
ConstructorDescriptionScrollPaneAddon
(JScrollPane scrollPane, String name, int orientation, int stepSizeMillis, long defaultLoadTime, boolean hasMenu) -
Method Summary
Modifier and TypeMethodDescriptionvoid
anotherScrollerMovedInner
(long newValue) Another managed scroller moved it's positionlong
The start time of the scroller in milliseconds.long
This will be none for sliders, such as on the map.void
rangesChanged
(long setValue) Called when ranges have been changed and tells scroller to go to a particular absolute value.void
valueSetMillis
(long valueMillis) Called when a new position has been setMethods inherited from class pamScrollSystem.AbstractPamScrollerAWT
addMouseWheelSource, createScrollComponenent, createScrollComponenent, getStandardOptionsMenu, isShowing, menuButtonPress, playbackStarted, playbackStopped, setVisible, showPlaybackMenu
Methods inherited from class pamScrollSystem.AbstractPamScroller
addDataBlock, 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, reLoad, removeAllDataBlocks, removeDataBlock, removeObserver, setBlockIncrement, setPageStep, setRangeMillis, setScrollerCoupling, setStepSizeMillis, setUnitIncrement, setValueMillis, setVisibleMillis, startPlayback, stopPlayback, toString, uncoupleScroller
-
Constructor Details
-
ScrollPaneAddon
public ScrollPaneAddon(JScrollPane scrollPane, String name, int orientation, int stepSizeMillis, long defaultLoadTime, boolean hasMenu)
-
-
Method Details
-
getButtonPanel
-
anotherScrollerMovedInner
public void anotherScrollerMovedInner(long newValue) Description copied from class:AbstractPamScroller
Another managed scroller moved it's position- Specified by:
anotherScrollerMovedInner
in classAbstractPamScroller
- Parameters:
newValue
- new value in millis
-
getComponent
- Specified by:
getComponent
in classAbstractPamScrollerAWT
- Returns:
- the Swing component to go into the GUI.
-
getValueMillis
public long getValueMillis()Description copied from class:AbstractPamScroller
The start time of the scroller in milliseconds. This is the current position of the scroller NOT the start time of loaded data.- Specified by:
getValueMillis
in classAbstractPamScroller
- Returns:
- the valueMillis
-
rangesChanged
public void rangesChanged(long setValue) Description copied from class:AbstractPamScroller
Called when ranges have been changed and tells scroller to go to a particular absolute value.- Specified by:
rangesChanged
in classAbstractPamScroller
-
valueSetMillis
public void valueSetMillis(long valueMillis) Description copied from class:AbstractPamScroller
Called when a new position has been set- Specified by:
valueSetMillis
in classAbstractPamScroller
- Parameters:
valueMillis
- new scroll value in milliseconds
-
getVisibleAmount
public long getVisibleAmount()Description copied from class:AbstractPamScroller
This will be none for sliders, such as on the map. For other scrollers it should be the same as the time displayed in to the navigaiton buttons of the scroller.- Specified by:
getVisibleAmount
in classAbstractPamScroller
- Returns:
- the visible display time in milliseconds.
-