|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.ScrollPaneLayout
edu.umd.cs.piccolox.swing.PScrollPaneLayout
public class PScrollPaneLayout
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.
Nested Class Summary | |
---|---|
static class |
PScrollPaneLayout.UIResource
The UI resource version of PScrollPaneLayout. |
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 | |
---|---|
PScrollPaneLayout()
|
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. |
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. |
void |
layoutContainer(java.awt.Container parent)
MODIFIED FROM javax.swing.ScrollPaneLayout.layoutContainer. |
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 |
---|
public PScrollPaneLayout()
Method Detail |
---|
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class javax.swing.ScrollPaneLayout
parent
- the Container to lay outprotected void adjustForVSB(boolean wantsVSB, java.awt.Rectangle available, java.awt.Rectangle vsbR, java.awt.Insets vpbInsets, boolean leftToRight)
wantsVSB
- whether to account for vertical scrollbaravailable
- region to adjustvsbR
- vertical scroll bar regionvpbInsets
- margin of vertical scroll barsleftToRight
- orientation of the text LTR or RTLprotected void adjustForHSB(boolean wantsHSB, java.awt.Rectangle available, java.awt.Rectangle hsbR, java.awt.Insets vpbInsets)
wantsHSB
- whether to account for horizontal scrollbaravailable
- region to adjusthsbR
- vertical scroll bar regionvpbInsets
- margin of the scroll bars
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |