FIGUE
*Tutorial *Previous *Current *Next

Working with Scrollbars : Autoscroll

* Step by Step

Define an initializer.
private final FacadeInitializer getParameters() {
  FacadeInitializer theParameters = new FacadeInitializer();
Add the choosen scrollbar policy to the initializer.
theParameters.setAutoScrollPolicy(
                    AutoScrollPolicy.WITHIN_FRAME);

theParameters.setAutoScrollPolicy(
                     AutoScrollPolicy.NONE);
If needed, set the autoscroll margin.
theParameters.setAutoScrollMargin(250)
If needed, set the autoscroll delay.
theParameters.setAutoScrollDelay(250)
If needed, set the autoscroll rate.
theParameters.setAutoScrollRate(100)
Pass the initializer to the facade on creation.
_facade = new AWTFacade(getParameters());

* Example

Accelerators :
home, end, page up, page down, left arrow,right arrow, up arrow, down arrow.
Autoscrolling :
drag the mouse inside the text area, approach a border or a corner, and wait.
Actions :
- turn the autoscroll on/off,
- select a rate, margin and delay,
- apply the new parameters,
- drag the mouse inside the text area.

* The Whole Program

* Related Classes and Methods

* What Next ?

Now you can :

*Tutorial *Previous *Current *Next

Comments or suggestions?
Need some help?
Copyright ©1998 INRIA
Last updated 4 November 1998 by Bruno Conductier
FIGUE