Class ComponentScroller

Class ComponentScroller

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

public class ComponentScroller
extends Scroller
Scrolls any component. Component to be scrolled may be a container, so ultimately many components may be scrolled at once.

Component to be scrolled may be specified at construction time, or may be set after construction via void setComponent(Component).

Version:
1.0, Apr 1 1996
Author:
David Geary
See Also:
BulletinLayout, Scroller, ScrollerLayout, ImageScroller, ComponentScrollerTest

Constructor Index

 o ComponentScroller()
 o ComponentScroller(Component)

Method Index

 o getScrollAreaSize()
 o scrollTo(int, int)
 o setComponent(Component)

Constructors

 o ComponentScroller
  public ComponentScroller()
 o ComponentScroller
  public ComponentScroller(Component component)

Methods

 o setComponent
  public void setComponent(Component component)
 o scrollTo
  public void scrollTo(int x,
                       int y)
Overrides:
scrollTo in class Scroller
 o getScrollAreaSize
  public Dimension getScrollAreaSize()
Overrides:
getScrollAreaSize in class Scroller