Graphics.scroll

Overview | Methods | This Package | All Packages

Graphics.scroll

Scrolls an area of the Graphics object.

Syntax

public final void scroll( int scrollX, int scrollY, Rectangle scrollArea, Rectangle clipArea )

Parameters

scrollX

The amount to scroll in the x direction. Negative values will scroll to the left.

scrollY

The amount to scroll in the y direction. Negative values will scroll up.

scrollArea

A Rectangle object that specifies the area to scroll.

clipArea

A Rectangle object that specifies the area beyond which no scrolling occurs.