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 ScrollPaneLayout
delegate
The 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 void
addLayoutComponent(String s, Component c)
boolean
equals(Object obj)
JViewport
getColumnHeader()
Component
getCorner(String key)
JScrollBar
getHorizontalScrollBar()
int
getHorizontalScrollBarPolicy()
JViewport
getRowHeader()
JScrollBar
getVerticalScrollBar()
int
getVerticalScrollBarPolicy()
JViewport
getViewport()
Rectangle
getViewportBorderBounds(JScrollPane scrollpane)
int
hashCode()
void
layoutContainer(Container parent)
Dimension
minimumLayoutSize(Container parent)
Dimension
preferredLayoutSize(Container parent)
void
removeLayoutComponent(Component c)
void
setHorizontalScrollBarPolicy(int x)
void
setVerticalScrollBarPolicy(int x)
void
syncWithScrollPane(JScrollPane sp)
String
toString()
-
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:
addLayoutComponent
in interfaceLayoutManager
- Overrides:
addLayoutComponent
in classScrollPaneLayout
-
getColumnHeader
public JViewport getColumnHeader()
- Overrides:
getColumnHeader
in classScrollPaneLayout
-
getCorner
public Component getCorner(String key)
- Overrides:
getCorner
in classScrollPaneLayout
-
getHorizontalScrollBar
public JScrollBar getHorizontalScrollBar()
- Overrides:
getHorizontalScrollBar
in classScrollPaneLayout
-
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()
- Overrides:
getHorizontalScrollBarPolicy
in classScrollPaneLayout
-
getRowHeader
public JViewport getRowHeader()
- Overrides:
getRowHeader
in classScrollPaneLayout
-
getVerticalScrollBar
public JScrollBar getVerticalScrollBar()
- Overrides:
getVerticalScrollBar
in classScrollPaneLayout
-
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()
- Overrides:
getVerticalScrollBarPolicy
in classScrollPaneLayout
-
getViewport
public JViewport getViewport()
- Overrides:
getViewport
in classScrollPaneLayout
-
getViewportBorderBounds
public Rectangle getViewportBorderBounds(JScrollPane scrollpane)
- Overrides:
getViewportBorderBounds
in classScrollPaneLayout
-
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Overrides:
minimumLayoutSize
in classScrollPaneLayout
-
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Overrides:
preferredLayoutSize
in classScrollPaneLayout
-
removeLayoutComponent
public void removeLayoutComponent(Component c)
- Specified by:
removeLayoutComponent
in interfaceLayoutManager
- Overrides:
removeLayoutComponent
in classScrollPaneLayout
-
setHorizontalScrollBarPolicy
public void setHorizontalScrollBarPolicy(int x)
- Overrides:
setHorizontalScrollBarPolicy
in classScrollPaneLayout
-
setVerticalScrollBarPolicy
public void setVerticalScrollBarPolicy(int x)
- Overrides:
setVerticalScrollBarPolicy
in classScrollPaneLayout
-
syncWithScrollPane
public void syncWithScrollPane(JScrollPane sp)
- Overrides:
syncWithScrollPane
in classScrollPaneLayout
-
layoutContainer
public void layoutContainer(Container parent)
- Specified by:
layoutContainer
in interfaceLayoutManager
- Overrides:
layoutContainer
in classScrollPaneLayout
-
-