CubeTwister 2.0alpha142 2012-02-11

ch.randelshofer.gui
Class ScrollPaneLayout2

java.lang.Object
  extended by javax.swing.ScrollPaneLayout
      extended by ch.randelshofer.gui.ScrollPaneLayout2
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable, javax.swing.plaf.UIResource, javax.swing.ScrollPaneConstants

public class ScrollPaneLayout2
extends javax.swing.ScrollPaneLayout
implements javax.swing.plaf.UIResource

Objects of this class behave essentially like javax.swing.ScrollPaneLayout but treats the top right corner specially.

If there is a component in the top right corner, it is granted to be visible when the vertical scroll bar is visible.

Author:
werni
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.ScrollPaneLayout
javax.swing.ScrollPaneLayout.UIResource
 
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
ScrollPaneLayout2()
          Creates a new instance of CornerLayout2
 
Method Summary
 void layoutContainer(java.awt.Container parent)
          Same as ScrollPaneLayout.layoutContainer but the top right corner is treated specially.
 
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

ScrollPaneLayout2

public ScrollPaneLayout2()
Creates a new instance of CornerLayout2

Method Detail

layoutContainer

public void layoutContainer(java.awt.Container parent)
Same as ScrollPaneLayout.layoutContainer but the top right corner is treated specially.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class javax.swing.ScrollPaneLayout
Parameters:
parent - the Container to lay out

(c) Werner Randelshofer.
All rights reserved.