All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gjt.Scroller

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

public abstract class Scroller
extends Panel
implements AdjustmentListener
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()

See Also:
ComponentScroller, ImageScroller, ScrollerLayout, ComponentScrollerTest, ImageScrollerTest

Variable Index

 o hbar
 o vbar
 o viewport

Constructor Index

 o Scroller()

Method Index

 o adjustmentValueChanged(AdjustmentEvent)
 o getHorizontalScrollbar()
 o getScrollAreaSize()
 o getVerticalScrollbar()
 o getViewport()
 o manageHorizontalScrollbar()
 o manageScrollbars()
 o manageVerticalScrollbar()
 o paint(Graphics)
 o scroll()
 o scrollAbsolute()
 o scrollLineDown()
 o scrollLineUp()
 o scrollPageDown()
 o scrollPageUp()
 o scrollTo(int, int)
 o setHorizontalLineAndPageIncrements()
 o setHorizontalScrollbarValues()
 o setScrollbarValues()
 o setScrollPosition(int, int)
 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 adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent event)
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 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 setScrollPosition
 public void setScrollPosition(int x,
                               int y)
 o setScrollbarValues
 public void setScrollbarValues()
 o setHorizontalScrollbarValues
 protected void setHorizontalScrollbarValues()
 o setVerticalScrollbarValues
 protected void setVerticalScrollbarValues()
 o scrollLineUp
 protected void scrollLineUp()
 o scrollLineDown
 protected void scrollLineDown()
 o scrollPageUp
 protected void scrollPageUp()
 o scrollPageDown
 protected void scrollPageDown()
 o scrollAbsolute
 protected void scrollAbsolute()
 o setHorizontalLineAndPageIncrements
 protected void setHorizontalLineAndPageIncrements()
 o setVerticalLineAndPageIncrements
 protected void setVerticalLineAndPageIncrements()
 o scroll
 protected void scroll()

All Packages  Class Hierarchy  This Package  Previous  Next  Index