# Class Scroller

    java.lang.Object
       |
       +----java.awt.Component
               |
               +----java.awt.Container
                       |
                       +----java.awt.Panel
                               |
                               +----Scroller

public class Scroller
extends Panel

Each Scroller contains a Panel (viewport) and two Scrollbars (horizontal and vertical). Works in conjunction with a ScrollerLayout, that lays out the viewport and two scrollbars.

Subclasses must override:

  abstract public void scrollTo(int x, int y)
  abstract public Dimension getScrollAreaSize()

Version:
  1.0, Apr 1 1996
Author:
  David Geary
See Also:
  ComponentScroller, ImageScroller, ScrollerLayout, ComponentScrollerTest, ImageScrollerTest

##

hbar
vbar
viewport

##

Scroller()

##

getHorizontalScrollbar()
getScrollAreaSize()
getVerticalScrollbar()
getViewport()
handleEvent(Event)
manageHorizontalScrollbar()
manageScrollbars()
manageVerticalScrollbar()
paint(Graphics)
scroll()
scrollAbsolute(Event)
scrollLineDown(Event)
scrollLineUp(Event)
scrollPageDown(Event)
scrollPageUp(Event)
scrollTo(int, int)
setHorizontalLineAndPageIncrements()
setHorizontalScrollbarValues()
setScrollbarValues()
setVerticalLineAndPageIncrements()
setVerticalScrollbarValues()
update(Graphics)

##

viewport

      protected Panel viewport

hbar

      protected Scrollbar hbar

vbar

      protected Scrollbar vbar

##

Scroller

      public Scroller()

##

scrollTo

      public abstract void scrollTo(int x,
                                    int y)

getScrollAreaSize

      public abstract Dimension getScrollAreaSize()

getHorizontalScrollbar

      public Scrollbar getHorizontalScrollbar()

getVerticalScrollbar

      public Scrollbar getVerticalScrollbar()

getViewport

      public Panel getViewport()

handleEvent

      public boolean handleEvent(Event event)

Overrides:
  handleEvent in class Component

paint

      public void paint(Graphics g)

Overrides:
  paint in class Component

update

      public void update(Graphics g)

Overrides:
  update in class Component

manageScrollbars

      public void manageScrollbars()

manageHorizontalScrollbar

      protected void manageHorizontalScrollbar()

manageVerticalScrollbar

      protected void manageVerticalScrollbar()

setScrollbarValues

      public void setScrollbarValues()

setHorizontalScrollbarValues

      protected void setHorizontalScrollbarValues()

setVerticalScrollbarValues

      protected void setVerticalScrollbarValues()

scrollLineUp

      protected void scrollLineUp(Event event)

scrollLineDown

      protected void scrollLineDown(Event event)

scrollPageUp

      protected void scrollPageUp(Event event)

scrollPageDown

      protected void scrollPageDown(Event event)

scrollAbsolute

      protected void scrollAbsolute(Event event)

setHorizontalLineAndPageIncrements

      protected void setHorizontalLineAndPageIncrements()

setVerticalLineAndPageIncrements

      protected void setVerticalLineAndPageIncrements()

scroll

      protected void scroll()