Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.vistech.imageviewer
Interface ScrollController

All Known Subinterfaces:
  PanZoomController

All Known Implementing Classes:
  Scroll, JAIImageCanvas, RenderableImageCanvas

public interface ScrollController

Specifies methods to scroll an image on a canvas.

Version:
  1.0 1 Nov 1999
Author:
  Lawrence Rodrigues

Method Summary
`java.awt.Point` | `getPanOffset()` Returns the panOffset property.
`void` | `scroll(int x, int y)` Scrolls the image.
`void` | `setPanOffset(java.awt.Point panOffset)` Gets the panOffset property.
`void` | `startScroll(int x, int y)` Starts the scroll and sets the anchor point.
`void` | `stopScroll()` Stops scroll.

Method Detail

### setPanOffset

    public void setPanOffset(java.awt.Point panOffset)

  Gets the panOffset property.
  Parameters:
    `panOffset` - the offset by which the currently displayed image is moved from the previous position.

### getPanOffset

    public java.awt.Point getPanOffset()

  Returns the panOffset property.
  Returns:
    the panOffset.

### startScroll

    public void startScroll(int x,
                            int y)

  Starts the scroll and sets the anchor point.
  Parameters:
    `x` - the x coordinate of the scroll anchor.
    `y` - the y coordinate of the scroll anchor.

### scroll

    public void scroll(int x,
                       int y)

  Scrolls the image.
  Parameters:
    `x` - the x coordinate of the current position.
    `y` - the y coordinate of the current position.

### stopScroll

    public void stopScroll()

  Stops scroll.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD