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 relevantJScrollPane.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.ScrollPaneLayout
ScrollPaneLayout.UIResource
-
-
Field Summary
Fields Modifier and Type Field Description protected ScrollPaneLayoutdelegateThe delegate layout.-
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
Constructors Constructor Description AdjustedLayout(ScrollPaneLayout delegate)Creates a new layout for adjusting the bounds of scrollbars and the viewport.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLayoutComponent(String s, Component c)booleanequals(Object obj)JViewportgetColumnHeader()ComponentgetCorner(String key)JScrollBargetHorizontalScrollBar()intgetHorizontalScrollBarPolicy()JViewportgetRowHeader()JScrollBargetVerticalScrollBar()intgetVerticalScrollBarPolicy()JViewportgetViewport()RectanglegetViewportBorderBounds(JScrollPane scrollpane)inthashCode()voidlayoutContainer(Container parent)DimensionminimumLayoutSize(Container parent)DimensionpreferredLayoutSize(Container parent)voidremoveLayoutComponent(Component c)voidsetHorizontalScrollBarPolicy(int x)voidsetVerticalScrollBarPolicy(int x)voidsyncWithScrollPane(JScrollPane sp)StringtoString()-
Methods inherited from class javax.swing.ScrollPaneLayout
addSingletonComponent
-
-
-
-
Field Detail
-
delegate
protected ScrollPaneLayout delegate
The delegate layout.
-
-
Constructor Detail
-
AdjustedLayout
public AdjustedLayout(ScrollPaneLayout delegate)
Creates a new layout for adjusting the bounds of scrollbars and the viewport.- Parameters:
delegate- The original (delegate) layout.
-
-
Method Detail
-
addLayoutComponent
public void addLayoutComponent(String s, Component c)
- Specified by:
addLayoutComponentin interfaceLayoutManager- Overrides:
addLayoutComponentin classScrollPaneLayout
-
getColumnHeader
public JViewport getColumnHeader()
- Overrides:
getColumnHeaderin classScrollPaneLayout
-
getCorner
public Component getCorner(String key)
- Overrides:
getCornerin classScrollPaneLayout
-
getHorizontalScrollBar
public JScrollBar getHorizontalScrollBar()
- Overrides:
getHorizontalScrollBarin classScrollPaneLayout
-
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()
- Overrides:
getHorizontalScrollBarPolicyin classScrollPaneLayout
-
getRowHeader
public JViewport getRowHeader()
- Overrides:
getRowHeaderin classScrollPaneLayout
-
getVerticalScrollBar
public JScrollBar getVerticalScrollBar()
- Overrides:
getVerticalScrollBarin classScrollPaneLayout
-
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()
- Overrides:
getVerticalScrollBarPolicyin classScrollPaneLayout
-
getViewport
public JViewport getViewport()
- Overrides:
getViewportin classScrollPaneLayout
-
getViewportBorderBounds
public Rectangle getViewportBorderBounds(JScrollPane scrollpane)
- Overrides:
getViewportBorderBoundsin classScrollPaneLayout
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSizein interfaceLayoutManager- Overrides:
minimumLayoutSizein classScrollPaneLayout
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSizein interfaceLayoutManager- Overrides:
preferredLayoutSizein classScrollPaneLayout
-
removeLayoutComponent
public void removeLayoutComponent(Component c)
- 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
public void syncWithScrollPane(JScrollPane sp)
- Overrides:
syncWithScrollPanein classScrollPaneLayout
-
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainerin interfaceLayoutManager- Overrides:
layoutContainerin classScrollPaneLayout
-
-