Class LoadWorkerStack

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class LoadWorkerStack extends JPanel implements Scrollable
Component which displays a list of LoadWorker components, including their progress bars and cancel buttons. Suitable for scrolling vertically.
Since:
20 Sep 2010
Author:
Mark Taylor
See Also:
  • Constructor Details

    • LoadWorkerStack

      public LoadWorkerStack()
      Constructor.
  • Method Details

    • addWorker

      public void addWorker(uk.ac.starlink.table.gui.TableLoadWorker worker, Icon icon)
      Adds a worker to this stack.
      Parameters:
      worker - worker
      icon - optional icon indicating table source
    • removeWorker

      public void removeWorker(uk.ac.starlink.table.gui.TableLoadWorker worker)
      Removes a worker which was previously added to this stack.
      Parameters:
      worker - worker to remove
    • getPreferredScrollableViewportSize

      public Dimension getPreferredScrollableViewportSize()
      Specified by:
      getPreferredScrollableViewportSize in interface Scrollable
    • getScrollableTracksViewportHeight

      public boolean getScrollableTracksViewportHeight()
      Specified by:
      getScrollableTracksViewportHeight in interface Scrollable
    • getScrollableTracksViewportWidth

      public boolean getScrollableTracksViewportWidth()
      Specified by:
      getScrollableTracksViewportWidth in interface Scrollable
    • getScrollableUnitIncrement

      public int getScrollableUnitIncrement(Rectangle visRect, int orientation, int direction)
      Specified by:
      getScrollableUnitIncrement in interface Scrollable
    • getScrollableBlockIncrement

      public int getScrollableBlockIncrement(Rectangle visRect, int orientation, int direction)
      Specified by:
      getScrollableBlockIncrement in interface Scrollable