public class BorderedScrolPaneLayout 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 |
---|
BorderedScrolPaneLayout() |
Modifier and Type | Method and Description |
---|---|
Dimension |
preferredLayoutSize(Container parent)
The preferred size of a
ScrollPane is the size of the
insets, plus the preferred size of the viewport, plus the preferred size
of the visible headers, plus the preferred size of the scrollbars that
will appear given the current view and the current scrollbar
displayPolicies. |
addLayoutComponent, addSingletonComponent, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorderBounds, layoutContainer, minimumLayoutSize, removeLayoutComponent, setHorizontalScrollBarPolicy, setVerticalScrollBarPolicy, syncWithScrollPane
public Dimension preferredLayoutSize(Container parent)
ScrollPane
is the size of the
insets, plus the preferred size of the viewport, plus the preferred size
of the visible headers, plus the preferred size of the scrollbars that
will appear given the current view and the current scrollbar
displayPolicies.
Note that the rowHeader is calculated as part of the preferred width and the colHeader is calculated as part of the preferred size.
preferredLayoutSize
in interface LayoutManager
preferredLayoutSize
in class ScrollPaneLayout
parent
- the Container
that will be laid outDimension
object specifying the preferred size of
the viewport and any scrollbarsViewportLayout
,
LayoutManager
Copyright © 2018 universAAL Consortium. All rights reserved.