Class SubstanceScrollPaneUI.AdjustedLayout
java.lang.Object
javax.swing.ScrollPaneLayout
org.pushingpixels.substance.internal.ui.SubstanceScrollPaneUI.AdjustedLayout
- All Implemented Interfaces:
LayoutManager,Serializable,UIResource,ScrollPaneConstants
- Enclosing class:
SubstanceScrollPaneUI
protected static class SubstanceScrollPaneUI.AdjustedLayout
extends ScrollPaneLayout
implements UIResource
Layout manager to adjust the bounds of scrollbars and the viewport when
the default (
SubstanceScrollPaneBorder) border is set on the
relevant JScrollPane.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.ScrollPaneLayout
ScrollPaneLayout.UIResource -
Field Summary
FieldsFields inherited from class javax.swing.ScrollPaneLayout
colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicyFields 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
ConstructorsConstructorDescriptionAdjustedLayout(ScrollPaneLayout delegate) Creates a new layout for adjusting the bounds of scrollbars and the viewport. -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanintintgetViewportBorderBounds(JScrollPane scrollpane) inthashCode()voidlayoutContainer(Container parent) minimumLayoutSize(Container parent) preferredLayoutSize(Container parent) voidvoidsetHorizontalScrollBarPolicy(int x) voidsetVerticalScrollBarPolicy(int x) voidtoString()Methods inherited from class javax.swing.ScrollPaneLayout
addSingletonComponent
-
Field Details
-
delegate
The delegate layout.
-
-
Constructor Details
-
AdjustedLayout
Creates a new layout for adjusting the bounds of scrollbars and the viewport.- Parameters:
delegate- The original (delegate) layout.
-
-
Method Details
-
addLayoutComponent
- Specified by:
addLayoutComponentin interfaceLayoutManager- Overrides:
addLayoutComponentin classScrollPaneLayout
-
equals
-
getColumnHeader
- Overrides:
getColumnHeaderin classScrollPaneLayout
-
getCorner
- Overrides:
getCornerin classScrollPaneLayout
-
getHorizontalScrollBar
- Overrides:
getHorizontalScrollBarin classScrollPaneLayout
-
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()- Overrides:
getHorizontalScrollBarPolicyin classScrollPaneLayout
-
getRowHeader
- Overrides:
getRowHeaderin classScrollPaneLayout
-
getVerticalScrollBar
- Overrides:
getVerticalScrollBarin classScrollPaneLayout
-
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()- Overrides:
getVerticalScrollBarPolicyin classScrollPaneLayout
-
getViewport
- Overrides:
getViewportin classScrollPaneLayout
-
getViewportBorderBounds
- Overrides:
getViewportBorderBoundsin classScrollPaneLayout
-
hashCode
public int hashCode() -
minimumLayoutSize
- Specified by:
minimumLayoutSizein interfaceLayoutManager- Overrides:
minimumLayoutSizein classScrollPaneLayout
-
preferredLayoutSize
- Specified by:
preferredLayoutSizein interfaceLayoutManager- Overrides:
preferredLayoutSizein classScrollPaneLayout
-
removeLayoutComponent
- Specified by:
removeLayoutComponentin interfaceLayoutManager- Overrides:
removeLayoutComponentin classScrollPaneLayout
-
setHorizontalScrollBarPolicy
public void setHorizontalScrollBarPolicy(int x) - Overrides:
setHorizontalScrollBarPolicyin classScrollPaneLayout
-
setVerticalScrollBarPolicy
public void setVerticalScrollBarPolicy(int x) - Overrides:
setVerticalScrollBarPolicyin classScrollPaneLayout
-
syncWithScrollPane
- Overrides:
syncWithScrollPanein classScrollPaneLayout
-
toString
-
layoutContainer
- Specified by:
layoutContainerin interfaceLayoutManager- Overrides:
layoutContainerin classScrollPaneLayout
-