pamScrollSystem
Class ScrollPaneAddon

java.lang.Object
  extended by pamScrollSystem.AbstractPamScroller
      extended by pamScrollSystem.ScrollPaneAddon
All Implemented Interfaces:
java.io.Serializable

public class ScrollPaneAddon
extends AbstractPamScroller

See Also:
Serialized Form

Nested Class Summary
private  class ScrollPaneAddon.DummyScrollBar
           
 
Nested classes/interfaces inherited from class pamScrollSystem.AbstractPamScroller
AbstractPamScroller.MouseWheel, AbstractPamScroller.PageBackAction, AbstractPamScroller.PageForwardAction, AbstractPamScroller.ShowMenuButtonPress
 
Field Summary
private  javax.swing.JScrollPane scrollPane
           
 
Fields inherited from class pamScrollSystem.AbstractPamScroller
HORIZONTAL, iconFill, iconLine, observers, scrollerData, usedDataBlocks, VERTICAL
 
Constructor Summary
ScrollPaneAddon(javax.swing.JScrollPane scrollPane, java.lang.String name, int orientation, int stepSizeMillis, long defaultLoadTime, boolean hasMenu)
           
 
Method Summary
 void anotherScrollerMovedInner(long newValue)
          Another managed scroller moved it's position
(package private)  void doMouseWheelAction(java.awt.event.MouseWheelEvent mouseWheelEvent)
           
 javax.swing.JPanel getButtonPanel()
           
 javax.swing.JComponent getComponent()
           
 long getValueMillis()
           
 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 set
 
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
 

Field Detail

scrollPane

private javax.swing.JScrollPane scrollPane
Constructor Detail

ScrollPaneAddon

public ScrollPaneAddon(javax.swing.JScrollPane scrollPane,
                       java.lang.String name,
                       int orientation,
                       int stepSizeMillis,
                       long defaultLoadTime,
                       boolean hasMenu)
Method Detail

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