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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classContainer class for the results of ScrollPaneSolver's solve method
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ScrollPaneSolver.ResultSolves for the viewport area, insets, and visibility of horizontal and vertical scrollbars of a ScrollPane
- 
Field Details- 
NEVERpublic static final int NEVERScrollbar visibility constants -- never show scrollbars- See Also:
 
- 
AUTOMATICpublic static final int AUTOMATICScrollbar visibility constants -- show scrollbars automatically- See Also:
 
- 
ALWAYSpublic static final int ALWAYSScrollbar visibility constants -- always show scrollbars- See Also:
 
 
- 
- 
Constructor Details- 
ScrollPaneSolverpublic ScrollPaneSolver()
 
- 
- 
Method Details- 
solvepublic 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 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
 
 
-