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
-
ScrollProgressBar(int, int)
-
-
ScrollProgressBar(int, int, Color, Color, Color)
-
-
ScrollRead(float, float)
- This method is called when the scrollbar is scrolled.
ScrollProgressBar
public ScrollProgressBar(int progressWidth,
int progressHeight)
ScrollProgressBar
public ScrollProgressBar(int progressWidth,
int progressHeight,
Color canvasColor,
Color progressColor,
Color progressBackground)
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.