Class Scroller

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

Variable Index

 o hbar
 o vbar
 o viewport

Constructor Index

 o Scroller()

Method Index

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

Variables

 o viewport
  protected Panel viewport
 o hbar
  protected Scrollbar hbar
 o vbar
  protected Scrollbar vbar

Constructors

 o Scroller
  public Scroller()

Methods

 o scrollTo
  public abstract void scrollTo(int x,
                                int y)
 o getScrollAreaSize
  public abstract Dimension getScrollAreaSize()
 o getHorizontalScrollbar
  public Scrollbar getHorizontalScrollbar()
 o getVerticalScrollbar
  public Scrollbar getVerticalScrollbar()
 o getViewport
  public Panel getViewport()
 o handleEvent
  public boolean handleEvent(Event event)
Overrides:
handleEvent in class Component
 o paint
  public void paint(Graphics g)
Overrides:
paint in class Component
 o update
  public void update(Graphics g)
Overrides:
update in class Component
 o manageScrollbars
  public void manageScrollbars()
 o manageHorizontalScrollbar
  protected void manageHorizontalScrollbar()
 o manageVerticalScrollbar
  protected void manageVerticalScrollbar()
 o setScrollbarValues
  public void setScrollbarValues()
 o setHorizontalScrollbarValues
  protected void setHorizontalScrollbarValues()
 o setVerticalScrollbarValues
  protected void setVerticalScrollbarValues()
 o scrollLineUp
  protected void scrollLineUp(Event event)
 o scrollLineDown
  protected void scrollLineDown(Event event)
 o scrollPageUp
  protected void scrollPageUp(Event event)
 o scrollPageDown
  protected void scrollPageDown(Event event)
 o scrollAbsolute
  protected void scrollAbsolute(Event event)
 o setHorizontalLineAndPageIncrements
  protected void setHorizontalLineAndPageIncrements()
 o setVerticalLineAndPageIncrements
  protected void setVerticalLineAndPageIncrements()
 o scroll
  protected void scroll()