public final class CEScrollPaneLayout
extends javax.swing.ScrollPaneLayout
CEScrollPaneLayout lays out a custom view that
looks like this:
G XXXXX V
G XXXXX V
G XXXXX V
G XXXXX V
HHHHHHHHH
Where G = Line Gutter, V = Vertical Scroll bar, H = Horizontal Scroll
Bar, X = main view. This is so that we don't have blank corners that
are unused, and also allows us to make the entire scrollpane
non-opaque and leave it to the children to paint in. colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicyCOLUMN_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 |
|---|
CEScrollPaneLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
layoutContainer(java.awt.Container parent)
Lay out the scrollpane according to our custom layout.
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
The minimum size of a ScrollPane is the size of the insets
plus minimum size of the viewport, plus the scrollpane's
viewportBorder insets, plus the minimum size
of the visible headers, plus the minimum size of the
scrollbars whose displayPolicy isn't NEVER.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.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.
|
void |
syncWithScrollPane(javax.swing.JScrollPane scrollPane)
This method must be called after setting a JScrollPanes
layout manager.
|
addLayoutComponent, addSingletonComponent, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorderBounds, removeLayoutComponent, setHorizontalScrollBarPolicy, setVerticalScrollBarPolicypublic void syncWithScrollPane(javax.swing.JScrollPane scrollPane)
syncWithScrollPane in class javax.swing.ScrollPaneLayoutpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerpreferredLayoutSize in class javax.swing.ScrollPaneLayoutparent - the Container that will be laid outViewportLayout,
LayoutManagerpublic java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerminimumLayoutSize in class javax.swing.ScrollPaneLayoutparent - the Container that will be laid outpublic void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerlayoutContainer in class javax.swing.ScrollPaneLayoutparent - the Container to lay out