Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Class ScrollPaneSolver

java.lang.Object
  extended by
org.eclipse.draw2d.ScrollPaneSolver

public class ScrollPaneSolver
extends java.lang.Object

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
static class ScrollPaneSolver.Result
          Container class for the results of ScrollPaneSolver's solve method
 
Field Summary
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 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 visibility 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 final int NEVER
Scrollbar visibility constants -- never show scrollbars

See Also:
Constant Field Values

AUTOMATIC

public static final int AUTOMATIC
Scrollbar visibility constants -- show scrollbars automatically

See Also:
Constant Field Values

ALWAYS

public static final int ALWAYS
Scrollbar visibility constants -- always show scrollbars

See Also:
Constant Field Values
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 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

Eclipse Draw2d
3.3

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire