Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua
Class QuaquaScrollPaneLayout

java.lang.Object
  extended by javax.swing.ScrollPaneLayout
      extended by ch.randelshofer.quaqua.QuaquaScrollPaneLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable, javax.swing.ScrollPaneConstants
Direct Known Subclasses:
JBrowser.BrowserScrollPaneLayout, QuaquaScrollPaneLayout.UIResource

public class QuaquaScrollPaneLayout
extends javax.swing.ScrollPaneLayout

The QuaquaScrollPaneLayout ensures that the vertical and the horizontal scroll bar of a JScrollPane do not intersect with the grow-box of a JFrame or a JDialog.

Note: This layout manager is only used, when we know that the grow-box intrudes into frames and dialogs. Therefore we do not have to explicitly check for this in this layout manager.

Version:
1.1 Don't avoid overlaps for JScrollPanes that are located on a JViewport. Fixed bugs in support for small scroll bars.
1.0 August 25, 2005 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Nested Class Summary
static class QuaquaScrollPaneLayout.UIResource
          The UI resource version of ScrollPaneLayout.
 
Field Summary
 
Fields inherited from class javax.swing.ScrollPaneLayout
colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicy
 
Fields inherited from interface javax.swing.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
 
Constructor Summary
QuaquaScrollPaneLayout()
          Creates a new instance.
 
Method Summary
 void layoutContainer(java.awt.Container parent)
           
 
Methods inherited from class javax.swing.ScrollPaneLayout
addLayoutComponent, addSingletonComponent, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorderBounds, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setHorizontalScrollBarPolicy, setVerticalScrollBarPolicy, syncWithScrollPane
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaScrollPaneLayout

public QuaquaScrollPaneLayout()
Creates a new instance.

Method Detail

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class javax.swing.ScrollPaneLayout

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.