public class ScrollPaneSolver
extends java.lang.Object
ScrollPane
's viewport and insets. Also determines
if the horizontal and vertical scrollbars should be visible.Modifier and Type | Class and Description |
---|---|
static class |
ScrollPaneSolver.Result
Container class for the results of ScrollPaneSolver's solve method
|
Modifier and Type | Field and Description |
---|---|
static int |
ALWAYS
Scrollbar visibility constants -- always show scrollbars
|
static int |
AUTOMATIC
Scrollbar visibility constants -- show scrollbars automatically
|
static int |
NEVER
Scrollbar visibility constants -- never show scrollbars
|
Constructor and Description |
---|
ScrollPaneSolver() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final int NEVER
public static final int AUTOMATIC
public static final int ALWAYS
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 scrollbarCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.