LayoutManager
, Serializable
, UIResource
, ScrollPaneConstants
protected static class SubstanceScrollPaneUI.AdjustedLayout extends ScrollPaneLayout implements UIResource
SubstanceScrollPaneBorder
) border is set on the
relevant JScrollPane
.ScrollPaneLayout.UIResource
Modifier and Type | Field | Description |
---|---|---|
protected ScrollPaneLayout |
delegate |
The delegate layout.
|
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
colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicy
Constructor | Description |
---|---|
AdjustedLayout(ScrollPaneLayout delegate) |
Creates a new layout for adjusting the bounds of scrollbars and the
viewport.
|
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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addSingletonComponent
protected ScrollPaneLayout delegate
public AdjustedLayout(ScrollPaneLayout delegate)
delegate
- The original (delegate) layout.public void addLayoutComponent(String s, Component c)
addLayoutComponent
in interface LayoutManager
addLayoutComponent
in class ScrollPaneLayout
public JViewport getColumnHeader()
getColumnHeader
in class ScrollPaneLayout
public Component getCorner(String key)
getCorner
in class ScrollPaneLayout
public JScrollBar getHorizontalScrollBar()
getHorizontalScrollBar
in class ScrollPaneLayout
public int getHorizontalScrollBarPolicy()
getHorizontalScrollBarPolicy
in class ScrollPaneLayout
public JViewport getRowHeader()
getRowHeader
in class ScrollPaneLayout
public JScrollBar getVerticalScrollBar()
getVerticalScrollBar
in class ScrollPaneLayout
public int getVerticalScrollBarPolicy()
getVerticalScrollBarPolicy
in class ScrollPaneLayout
public JViewport getViewport()
getViewport
in class ScrollPaneLayout
public Rectangle getViewportBorderBounds(JScrollPane scrollpane)
getViewportBorderBounds
in class ScrollPaneLayout
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
minimumLayoutSize
in class ScrollPaneLayout
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
preferredLayoutSize
in class ScrollPaneLayout
public void removeLayoutComponent(Component c)
removeLayoutComponent
in interface LayoutManager
removeLayoutComponent
in class ScrollPaneLayout
public void setHorizontalScrollBarPolicy(int x)
setHorizontalScrollBarPolicy
in class ScrollPaneLayout
public void setVerticalScrollBarPolicy(int x)
setVerticalScrollBarPolicy
in class ScrollPaneLayout
public void syncWithScrollPane(JScrollPane sp)
syncWithScrollPane
in class ScrollPaneLayout
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
layoutContainer
in class ScrollPaneLayout