Class PamScrollSlider

All Implemented Interfaces:
Serializable, DataTimeLimits

public class PamScrollSlider extends AbstractPamScrollerAWT
See Also:
  • Constructor Details

    • PamScrollSlider

      public PamScrollSlider(String name, int orientation, int stepSizeMillis, long defaultLoadTime, boolean hasMenu)
  • Method Details

    • 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 JComponent getComponent()
      Specified by:
      getComponent in class AbstractPamScrollerAWT
      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()
      Description copied from class: AbstractPamScroller
      The start time of the scroller in milliseconds. This is the current position of the scroller NOT the start time of loaded data.
      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
    • getVisibleAmount

      public long getVisibleAmount()
      Description copied from class: AbstractPamScroller
      This will be none for sliders, such as on the map. For other scrollers it should be the same as the time displayed in to the navigaiton buttons of the scroller.
      Specified by:
      getVisibleAmount in class AbstractPamScroller
      Returns:
      the visible display time in milliseconds.
    • setRangeMillis

      public void setRangeMillis(long minimumMillis, long maximumMillis, boolean notify)
      Description copied from class: AbstractPamScroller
      Set the range of the currently loaded data and optionally notify other scrollers.
      Overrides:
      setRangeMillis in class AbstractPamScroller
      Parameters:
      minimumMillis - minimum time in milliseconds
      maximumMillis - maximum time in milliseconds
      notify - notify the rangesChanged function.
    • setStepSizeMillis

      public void setStepSizeMillis(int stepSizeMillis)
      Overrides:
      setStepSizeMillis in class AbstractPamScroller
      Parameters:
      stepSizeMillis - the stepSizeMillis to set
    • setUnitIncrement

      public void setUnitIncrement(long unitIncrement)
      Overrides:
      setUnitIncrement in class AbstractPamScroller
      Parameters:
      unitIncrement - the unitIncrement to set in millis
    • setPageStep

      public void setPageStep(int pageStep)
      Overrides:
      setPageStep in class AbstractPamScroller
      Parameters:
      pageStep - the pageStep to set
    • getSlider

      public JSlider getSlider()
      Returns:
      the slider