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, 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
ConstructorsConstructorDescriptionAdjustedLayout
(ScrollPaneLayout delegate) Creates a new layout for adjusting the bounds of scrollbars and the viewport. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
int
int
getViewportBorderBounds
(JScrollPane scrollpane) int
hashCode()
void
layoutContainer
(Container parent) minimumLayoutSize
(Container parent) preferredLayoutSize
(Container parent) void
void
setHorizontalScrollBarPolicy
(int x) void
setVerticalScrollBarPolicy
(int x) void
toString()
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:
addLayoutComponent
in interfaceLayoutManager
- Overrides:
addLayoutComponent
in classScrollPaneLayout
-
equals
-
getColumnHeader
- Overrides:
getColumnHeader
in classScrollPaneLayout
-
getCorner
- Overrides:
getCorner
in classScrollPaneLayout
-
getHorizontalScrollBar
- Overrides:
getHorizontalScrollBar
in classScrollPaneLayout
-
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()- Overrides:
getHorizontalScrollBarPolicy
in classScrollPaneLayout
-
getRowHeader
- Overrides:
getRowHeader
in classScrollPaneLayout
-
getVerticalScrollBar
- Overrides:
getVerticalScrollBar
in classScrollPaneLayout
-
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()- Overrides:
getVerticalScrollBarPolicy
in classScrollPaneLayout
-
getViewport
- Overrides:
getViewport
in classScrollPaneLayout
-
getViewportBorderBounds
- Overrides:
getViewportBorderBounds
in classScrollPaneLayout
-
hashCode
public int hashCode() -
minimumLayoutSize
- Specified by:
minimumLayoutSize
in interfaceLayoutManager
- Overrides:
minimumLayoutSize
in classScrollPaneLayout
-
preferredLayoutSize
- Specified by:
preferredLayoutSize
in interfaceLayoutManager
- Overrides:
preferredLayoutSize
in classScrollPaneLayout
-
removeLayoutComponent
- 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
- Overrides:
syncWithScrollPane
in classScrollPaneLayout
-
toString
-
layoutContainer
- Specified by:
layoutContainer
in interfaceLayoutManager
- Overrides:
layoutContainer
in classScrollPaneLayout
-