pamScrollSystem
Class PamScrollSlider

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

public class PamScrollSlider
extends AbstractPamScroller

See Also:
Serialized Form

Nested Class Summary
(package private)  class PamScrollSlider.SliderListener
           
 
Nested classes/interfaces inherited from class pamScrollSystem.AbstractPamScroller
AbstractPamScroller.MouseWheel, AbstractPamScroller.PageBackAction, AbstractPamScroller.PageForwardAction, AbstractPamScroller.ShowMenuButtonPress
 
Field Summary
private  javax.swing.JPanel panel
           
private  javax.swing.JSlider slider
           
 
Fields inherited from class pamScrollSystem.AbstractPamScroller
HORIZONTAL, iconFill, iconLine, observers, scrollerData, usedDataBlocks, VERTICAL
 
Constructor Summary
PamScrollSlider(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.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 scrollMoved()
           
 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, getButtonPanel, 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

slider

private javax.swing.JSlider slider

panel

private javax.swing.JPanel panel
Constructor Detail

PamScrollSlider

public PamScrollSlider(java.lang.String name,
                       int orientation,
                       int stepSizeMillis,
                       long defaultLoadTime,
                       boolean hasMenu)
Method Detail

doMouseWheelAction

void doMouseWheelAction(java.awt.event.MouseWheelEvent mouseWheelEvent)
Specified by:
doMouseWheelAction in class AbstractPamScroller

scrollMoved

public void scrollMoved()

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

getComponent

public javax.swing.JComponent getComponent()
Specified by:
getComponent in class AbstractPamScroller
Returns:
the Swing component to go into the GUI.

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

getValueMillis

public long getValueMillis()
Specified by:
getValueMillis in class AbstractPamScroller
Returns:
the valueMillis

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