public class PamScroller extends AbstractPamScrollerAWT
HORIZONTAL, VERTICAL
Constructor and Description |
---|
PamScroller(java.lang.String name,
int orientation,
int stepSizeMillis,
long defaultLoadTime,
boolean hasMenu)
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)
|
Modifier and Type | Method and Description |
---|---|
void |
addControl(javax.swing.JComponent component)
Add an additional control to the control panel which
will sit to the right of or just below the wee buttons
used for scroll bar navigation.
|
void |
anotherScrollerMovedInner(long newValue)
Another managed scroller moved it's position
|
long |
getBlockIncrement() |
javax.swing.JComponent |
getComponent() |
javax.swing.JScrollBar |
getScrollBar() |
long |
getValueMillis() |
long |
getVisibleAmount() |
void |
rangesChanged(long setValue)
Called when ranges have been changed and tells
scroller to go to a particular absolute value.
|
void |
scrollMoved() |
void |
setBlockIncrement(long blockIncrement) |
void |
setShowTimes(boolean showTimes) |
void |
setUnitIncrement(long unitIncrement) |
void |
setVisibleAmount(long visibleAmount) |
java.lang.String |
toString() |
void |
valueSetMillis(long valueMillis)
Called when a new position has been set
|
addMouseWheelSource, createScrollComponenent, getStandardOptionsMenu, setVisible
addDataBlock, addObserver, anotherScrollerMovedOuter, coupledScrollerChanged, coupleScroller, destroyScroller, getDefaultLoadtime, getMaximumMillis, getMinimumMillis, getNumUsedDataBlocks, getObservers, getPageStep, getRangeMillis, getScrollerCoupling, getScrollManager, getStepSizeMillis, getUsedDataBlock, isDataBlockUsed, isInSpecialList, reLoad, removeAllDataBlocks, removeDataBlock, removeObserver, setPageStep, setRangeMillis, setScrollerCoupling, setStepSizeMillis, setValueMillis, uncoupleScroller
public PamScroller(java.lang.String name, int orientation, int stepSizeMillis, long defaultLoadTime, boolean hasMenu)
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.public void setShowTimes(boolean showTimes)
public void addControl(javax.swing.JComponent component)
component
- public void rangesChanged(long setValue)
AbstractPamScroller
rangesChanged
in class AbstractPamScroller
public void scrollMoved()
public void anotherScrollerMovedInner(long newValue)
AbstractPamScroller
anotherScrollerMovedInner
in class AbstractPamScroller
newValue
- new value in millispublic javax.swing.JComponent getComponent()
getComponent
in class AbstractPamScrollerAWT
public void setBlockIncrement(long blockIncrement)
setBlockIncrement
in class AbstractPamScroller
blockIncrement
- the blockIncrement to set in millispublic long getBlockIncrement()
public void setVisibleAmount(long visibleAmount)
setVisibleAmount
in class AbstractPamScroller
visibleAmount
- the visibleAmount to set in millispublic long getVisibleAmount()
public void setUnitIncrement(long unitIncrement)
setUnitIncrement
in class AbstractPamScroller
unitIncrement
- the unitIncrement to set in millispublic long getValueMillis()
getValueMillis
in class AbstractPamScroller
public void valueSetMillis(long valueMillis)
AbstractPamScroller
valueSetMillis
in class AbstractPamScroller
valueMillis
- new scroll value in millisecondspublic java.lang.String toString()
toString
in class java.lang.Object
public javax.swing.JScrollBar getScrollBar()