edu.umd.cs.jazz.util
Class ZScrollPaneLayout

java.lang.Object
  |
  +--javax.swing.ScrollPaneLayout
        |
        +--edu.umd.cs.jazz.util.ZScrollPaneLayout
All Implemented Interfaces:
java.awt.LayoutManager, javax.swing.ScrollPaneConstants, java.io.Serializable
Direct Known Subclasses:
ZScrollPaneLayout.UIResource

public class ZScrollPaneLayout
extends javax.swing.ScrollPaneLayout

A subclass of ScrollPaneLayout that looks at the Viewport for sizing information rather than View. Also queries the Viewport for sizing information after each decision about scrollbar visiblity

Author:
Lance Good
See Also:
Serialized Form

Nested Class Summary
static class ZScrollPaneLayout.UIResource
          The UI resource version of ZScrollPaneLayout.
 
Nested classes 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
ZScrollPaneLayout()
           
 
Method Summary
protected  void adjustForHSB(boolean wantsHSB, java.awt.Rectangle available, java.awt.Rectangle hsbR, java.awt.Insets vpbInsets)
          Copied FROM javax.swing.ScrollPaneLayout.adjustForHSB This method is called from ScrollPaneLayout.layoutContainer and is private in ScrollPaneLayout so it was copied here
protected  void adjustForVSB(boolean wantsVSB, java.awt.Rectangle available, java.awt.Rectangle vsbR, java.awt.Insets vpbInsets, boolean leftToRight)
          Copied FROM javax.swing.ScrollPaneLayout.adjustForVSB This method is called from ScrollPaneLayout.layoutContainer and is private in ScrollPaneLayout so it was copied here
 void layoutContainer(java.awt.Container parent)
          MODIFIED FROM javax.swing.ScrollPaneLayout.layoutContainer This is largely the same as ScrollPaneLayout.layoutContainer but obtains the preferred view size from the viewport rather than directly from the view so the viewport can get the preferred size from the ZScrollDirector
 
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

ZScrollPaneLayout

public ZScrollPaneLayout()
Method Detail

layoutContainer

public void layoutContainer(java.awt.Container parent)
MODIFIED FROM javax.swing.ScrollPaneLayout.layoutContainer This is largely the same as ScrollPaneLayout.layoutContainer but obtains the preferred view size from the viewport rather than directly from the view so the viewport can get the preferred size from the ZScrollDirector

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

adjustForVSB

protected void adjustForVSB(boolean wantsVSB,
                            java.awt.Rectangle available,
                            java.awt.Rectangle vsbR,
                            java.awt.Insets vpbInsets,
                            boolean leftToRight)
Copied FROM javax.swing.ScrollPaneLayout.adjustForVSB This method is called from ScrollPaneLayout.layoutContainer and is private in ScrollPaneLayout so it was copied here


adjustForHSB

protected void adjustForHSB(boolean wantsHSB,
                            java.awt.Rectangle available,
                            java.awt.Rectangle hsbR,
                            java.awt.Insets vpbInsets)
Copied FROM javax.swing.ScrollPaneLayout.adjustForHSB This method is called from ScrollPaneLayout.layoutContainer and is private in ScrollPaneLayout so it was copied here



Copyright � 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.