edu.umd.cs.piccolox.swing
Class PScrollPaneLayout
java.lang.Object
javax.swing.ScrollPaneLayout
edu.umd.cs.piccolox.swing.PScrollPaneLayout
- All Implemented Interfaces:
- LayoutManager, Serializable, ScrollPaneConstants
- Direct Known Subclasses:
- PScrollPaneLayout.UIResource
public class PScrollPaneLayout
- extends 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
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 |
Method Summary |
protected void |
adjustForHSB(boolean wantsHSB,
Rectangle available,
Rectangle hsbR,
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,
Rectangle available,
Rectangle vsbR,
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(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 PScrollDirector |
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 |
PScrollPaneLayout
public PScrollPaneLayout()
layoutContainer
public void layoutContainer(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 PScrollDirector
- Specified by:
layoutContainer
in interface LayoutManager
- Overrides:
layoutContainer
in class ScrollPaneLayout
- Parameters:
parent
- the Container to lay out
adjustForVSB
protected void adjustForVSB(boolean wantsVSB,
Rectangle available,
Rectangle vsbR,
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,
Rectangle available,
Rectangle hsbR,
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 © 1995-2011 Piccolo2D. All Rights Reserved.