borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

Scroller interface

borland.jbcl.view.Scroller

About the Scroller interface

Variables  Properties  Methods  

Implemented by GridControl, GridView, ScrollPaneGridView

The Scroller interface is used to define a scrolling window that a Core component can pass to and receive information from. This is typically a ScrollPane, but custom scrolling behavior may exist.


Scroller variables

Variables defined in this interface

Scroller properties

*Read-only properties **Write-only properties

Properties defined in this interface

Scroller methods

Methods defined in this interface


Scroller variables

INDEX_UNITS

  public static final int INDEX_UNITS = 1
Scroll unit type. This Scroller uses index-based scrolling.

PIXEL_UNITS

  public static final int PIXEL_UNITS = 0
Scroll unit type. This Scroller uses pixel-based scrolling.

Scroller properties

increments

 public void setIncrements(java.awt.Point increments)
Sets the unit increments (arrow button on scrollbar) in pixels or index(es).

See also: scrollUnits

scrollPosition

 public Point getScrollPosition()
Returns the current scroll position (in pixels).

scrollUnits

 public int getScrollUnits()
Returns the scrolling metaphor units: PIXEL_UNITS or INDEX_UNITS.

viewportSize

 public Dimension getViewportSize()
Returns the viewport size (in pixels) that a client component is being displayed through.

Scroller methods

doLayout()

  public void doLayout()
Forces the Scroller to lay out its contained components, updating scrollbars, and so on.

setScrollPosition(int, int)

  public void setScrollPosition(int x, int y)
Sets the current scroll position in pixels or index(es).

See also: scrollUnits