Package org.eclipse.draw2d
Class ScrollPaneSolver
java.lang.Object
org.eclipse.draw2d.ScrollPaneSolver
This class handles the calculation of solving for the area of a
ScrollPane's viewport and insets. Also determines
if the horizontal and vertical scrollbars should be visible.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classContainer class for the results of ScrollPaneSolver's solve method -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScrollPaneSolver.ResultSolves for the viewport area, insets, and visibility of horizontal and vertical scrollbars of a ScrollPane
-
Field Details
-
NEVER
public static final int NEVERScrollbar visibility constants -- never show scrollbars- See Also:
-
AUTOMATIC
public static final int AUTOMATICScrollbar visibility constants -- show scrollbars automatically- See Also:
-
ALWAYS
public static final int ALWAYSScrollbar visibility constants -- always show scrollbars- See Also:
-
-
Constructor Details
-
ScrollPaneSolver
public ScrollPaneSolver()
-
-
Method Details
-
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 visibility of horizontal and vertical scrollbars of a ScrollPane- Parameters:
clientArea- The ScrollPane's client areaviewport- The ScrollPane's ViewporthVis- Horizontal scrollbar visibilityvVis- Vertical scrollbar visibilityvBarWidth- Width of vertical scrollbarhBarHeight- Height of horizontal scrollbar- Returns:
- the Result
-