borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.view
borland.jbcl.view.Scroller
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.
public static final int INDEX_UNITS = 1Scroll unit type. This Scroller uses index-based scrolling.
public static final int PIXEL_UNITS = 0Scroll unit type. This Scroller uses pixel-based scrolling.
public void setIncrements(java.awt.Point increments)Sets the unit increments (arrow button on scrollbar) in pixels or index(es).
See also: scrollUnits
public Point getScrollPosition()Returns the current scroll position (in pixels).
public int getScrollUnits()Returns the scrolling metaphor units: PIXEL_UNITS or INDEX_UNITS.
public Dimension getViewportSize()Returns the viewport size (in pixels) that a client component is being displayed through.
public void doLayout()Forces the Scroller to lay out its contained components, updating scrollbars, and so on.
public void setScrollPosition(int x, int y)Sets the current scroll position in pixels or index(es).
See also: scrollUnits