Eclipse Draw2d
2.1

org.eclipse.draw2d
Class ScrollPaneSolver

java.lang.Object
  |
  +--org.eclipse.draw2d.ScrollPaneSolver

public class ScrollPaneSolver
extends Object

This class handles the calculation of solving for the area of a ScrollPane's viewport and insets. Also determines if the horizonal and vertical scrollbars should be visible. TODO: Make scrollbar visibility constants final.


Nested Class Summary
static class ScrollPaneSolver.Result
          Container class for the results of ScrollPaneSolver's solve method
 
Field Summary
static int ALWAYS
          Scrollbar visiblity constants -- always show scrollbars
static int AUTOMATIC
          Scrollbar visiblity constants -- show scrollbars automatically
static int NEVER
          Scrollbar visiblity constants -- never show scrollbars
 
Constructor Summary
ScrollPaneSolver()
           
 
Method Summary
static ScrollPaneSolver.Result solve(Rectangle clientArea, Viewport viewport, int hVis, int vVis, int vBarWidth, int hBarHeight)
          Solves for the viewport area, insets, and visiblity of horizontal and vertical scrollbars of a ScrollPane
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEVER

public static int NEVER
Scrollbar visiblity constants -- never show scrollbars


AUTOMATIC

public static int AUTOMATIC
Scrollbar visiblity constants -- show scrollbars automatically


ALWAYS

public static int ALWAYS
Scrollbar visiblity constants -- always show scrollbars

Constructor Detail

ScrollPaneSolver

public ScrollPaneSolver()
Method Detail

solve

public static ScrollPaneSolver.Result solve(Rectangle clientArea,
                                            Viewport viewport,
                                            int hVis,
                                            int vVis,
                                            int vBarWidth,
                                            int hBarHeight)
Solves for the viewport area, insets, and visiblity of horizontal and vertical scrollbars of a ScrollPane

Parameters:
clientArea - The ScrollPane's client area
viewport - The ScrollPane's Viewport
hVis - Horizontal scrollbar visibility
vVis - Vertical scrollbar visibility
vBarWidth - Width of vertical scrollbar
hBarHeight - Height of horizontal scrollbar
Returns:
the Result

Eclipse Draw2d
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.