pamScrollSystem
Class ScrollPaneAddon
java.lang.Object
pamScrollSystem.AbstractPamScroller
pamScrollSystem.ScrollPaneAddon
- All Implemented Interfaces:
- java.io.Serializable
public class ScrollPaneAddon
- extends AbstractPamScroller
- See Also:
- Serialized Form
|
Field Summary |
private javax.swing.JScrollPane |
scrollPane
|
|
Constructor Summary |
ScrollPaneAddon(javax.swing.JScrollPane scrollPane,
java.lang.String name,
int orientation,
int stepSizeMillis,
long defaultLoadTime,
boolean hasMenu)
|
| Methods inherited from class pamScrollSystem.AbstractPamScroller |
addDataBlock, addMouseWheelSource, addObserver, anotherScrollerMovedOuter, coupledScrollerChanged, coupleScroller, destroyScroller, getDefaultLoadtime, getMaximumMillis, getMinimumMillis, getNumUsedDataBlocks, getObservers, getPageStep, getRangeMillis, getScrollerCoupling, getScrollManager, getStepSizeMillis, getUsedDataBlock, isDataBlockUsed, menuButtonPress, notifyRangeChange, notifyValueChange, pageBack, pageForward, reLoad, removeDataBlock, removeObserver, setBlockIncrement, setDefaultLoadtime, setPageStep, setRangeMillis, setScrollerCoupling, setStepSizeMillis, setUnitIncrement, setValueMillis, setVisible, setVisibleAmount, showMenuButtonPopup, uncoupleScroller |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scrollPane
private javax.swing.JScrollPane scrollPane
ScrollPaneAddon
public ScrollPaneAddon(javax.swing.JScrollPane scrollPane,
java.lang.String name,
int orientation,
int stepSizeMillis,
long defaultLoadTime,
boolean hasMenu)
getButtonPanel
public javax.swing.JPanel getButtonPanel()
- Overrides:
getButtonPanel in class AbstractPamScroller
- Returns:
- the buttonPanel
anotherScrollerMovedInner
public void anotherScrollerMovedInner(long newValue)
- Description copied from class:
AbstractPamScroller
- Another managed scroller moved it's position
- Specified by:
anotherScrollerMovedInner in class AbstractPamScroller
- Parameters:
newValue - new value in millis
doMouseWheelAction
void doMouseWheelAction(java.awt.event.MouseWheelEvent mouseWheelEvent)
- Specified by:
doMouseWheelAction in class AbstractPamScroller
getComponent
public javax.swing.JComponent getComponent()
- Specified by:
getComponent in class AbstractPamScroller
- Returns:
- the Swing component to go into the GUI.
getValueMillis
public long getValueMillis()
- Specified by:
getValueMillis in class AbstractPamScroller
- 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 class AbstractPamScroller
valueSetMillis
public void valueSetMillis(long valueMillis)
- Description copied from class:
AbstractPamScroller
- Called when a new position has been set
- Specified by:
valueSetMillis in class AbstractPamScroller
- Parameters:
valueMillis - new scroll value in milliseconds