|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 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 |
public static int NEVER
public static int AUTOMATIC
public static int ALWAYS
Constructor Detail |
public ScrollPaneSolver()
Method Detail |
public static ScrollPaneSolver.Result solve(Rectangle clientArea, Viewport viewport, int hVis, int vVis, int vBarWidth, int hBarHeight)
clientArea
- The ScrollPane's client areaviewport
- The ScrollPane's ViewporthVis
- Horizontal scrollbar visibilityvVis
- Vertical scrollbar visibilityvBarWidth
- Width of vertical scrollbarhBarHeight
- Height of horizontal scrollbar
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |