Class ScrollProgressBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ProgressBar
                           |
                           +----ScrollProgressBar

public class ScrollProgressBar
extends ProgressBar
implements ScrollReadable
This class extends the ProgressBar class and impelments the ScrollReadable interface for communication with the Scroller class. This class is used only for the demo applet


Constructor Index

 o ScrollProgressBar(int, int)
 o ScrollProgressBar(int, int, Color, Color, Color)

Method Index

 o ScrollRead(float, float)
This method is called when the scrollbar is scrolled.

Constructors

 o ScrollProgressBar
  public ScrollProgressBar(int progressWidth,
                           int progressHeight)
 o ScrollProgressBar
  public ScrollProgressBar(int progressWidth,
                           int progressHeight,
                           Color canvasColor,
                           Color progressColor,
                           Color progressBackground)

Methods

 o ScrollRead
  public void ScrollRead(float horPercentage,
                         float vertPercentage)
This method is called when the scrollbar is scrolled. It receives from the Scroller object a percentage(a float between 0 and 1), which is passed to the ProgressBars updateBar method which repaints the progress bar reflecting the percentage passed.

1