pamScrollSystem
Class PamScrollSlider
java.lang.Object
pamScrollSystem.AbstractPamScroller
pamScrollSystem.PamScrollSlider
- All Implemented Interfaces:
- java.io.Serializable
public class PamScrollSlider
- extends AbstractPamScroller
- See Also:
- Serialized Form
|
Field Summary |
private javax.swing.JPanel |
panel
|
private javax.swing.JSlider |
slider
|
|
Constructor Summary |
PamScrollSlider(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, 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 |
slider
private javax.swing.JSlider slider
panel
private javax.swing.JPanel panel
PamScrollSlider
public PamScrollSlider(java.lang.String name,
int orientation,
int stepSizeMillis,
long defaultLoadTime,
boolean hasMenu)
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