public class ScrollLayoutManagerDelegate extends ScrollPaneLayout
ScrollPaneLayout.UIResource
colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicy
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 and Description |
---|
ScrollLayoutManagerDelegate(ScrollPaneLayout delegate) |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(String name,
Component comp) |
JViewport |
getColumnHeader() |
Component |
getCorner(String key) |
ScrollPaneLayout |
getDelegate() |
JScrollBar |
getHorizontalScrollBar() |
int |
getHorizontalScrollBarPolicy() |
JViewport |
getRowHeader() |
JScrollBar |
getVerticalScrollBar() |
int |
getVerticalScrollBarPolicy() |
JViewport |
getViewport() |
Rectangle |
getViewportBorderBounds(JScrollPane scrollpane) |
void |
layoutContainer(Container parent) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
removeLayoutComponent(Component comp) |
void |
setHorizontalScrollBarPolicy(int x) |
void |
setVerticalScrollBarPolicy(int x) |
void |
syncWithScrollPane(JScrollPane sp) |
addSingletonComponent
public ScrollLayoutManagerDelegate(ScrollPaneLayout delegate)
public ScrollPaneLayout getDelegate()
public void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
addLayoutComponent
in class ScrollPaneLayout
public void syncWithScrollPane(JScrollPane sp)
syncWithScrollPane
in class ScrollPaneLayout
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
removeLayoutComponent
in class ScrollPaneLayout
public int getVerticalScrollBarPolicy()
getVerticalScrollBarPolicy
in class ScrollPaneLayout
public void setVerticalScrollBarPolicy(int x)
setVerticalScrollBarPolicy
in class ScrollPaneLayout
public int getHorizontalScrollBarPolicy()
getHorizontalScrollBarPolicy
in class ScrollPaneLayout
public void setHorizontalScrollBarPolicy(int x)
setHorizontalScrollBarPolicy
in class ScrollPaneLayout
public JViewport getViewport()
getViewport
in class ScrollPaneLayout
public JScrollBar getHorizontalScrollBar()
getHorizontalScrollBar
in class ScrollPaneLayout
public JScrollBar getVerticalScrollBar()
getVerticalScrollBar
in class ScrollPaneLayout
public JViewport getRowHeader()
getRowHeader
in class ScrollPaneLayout
public JViewport getColumnHeader()
getColumnHeader
in class ScrollPaneLayout
public Component getCorner(String key)
getCorner
in class ScrollPaneLayout
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize
in interface LayoutManager
preferredLayoutSize
in class ScrollPaneLayout
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
minimumLayoutSize
in class ScrollPaneLayout
public void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
layoutContainer
in class ScrollPaneLayout
public Rectangle getViewportBorderBounds(JScrollPane scrollpane)
getViewportBorderBounds
in class ScrollPaneLayout