org.mitre.cvw
Class RoomScrollbackLayout

java.lang.Object
javax.swing.ScrollPaneLayout
org.mitre.cvw.RoomScrollbackLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, javax.swing.ScrollPaneConstants, java.io.Serializable
- public class RoomScrollbackLayout
- extends javax.swing.ScrollPaneLayout
- implements java.awt.LayoutManager, javax.swing.ScrollPaneConstants, java.io.Serializable
The layout manager used by JScrollPane. JScrollPaneLayout is
responsible for nine components: a viewport, two scrollbars,
a row header, a column header, and four "corner" components.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. A future release of Swing will provide support for
long term persistence.
- Version:
- 1.34 04/22/99
| Nested classes inherited from class javax.swing.ScrollPaneLayout |
javax.swing.ScrollPaneLayout.UIResource |
| Fields 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 |
| Methods inherited from class javax.swing.ScrollPaneLayout |
addLayoutComponent, addSingletonComponent, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorderBounds, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent, setHorizontalScrollBarPolicy, setVerticalScrollBarPolicy, syncWithScrollPane |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoomScrollbackLayout
public RoomScrollbackLayout()
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Lay out the scrollpane. The positioning of components depends on
the following constraints:
- The row header, if present and visible, gets its preferred
height and the viewports width.
- The column header, if present and visible, gets its preferred
width and the viewports height.
- If a vertical scrollbar is needed, i.e. if the viewports extent
height is smaller than its view height or if the displayPolicy
is ALWAYS, it's treated like the row header wrt it's dimensions and
it's made visible.
- If a horizontal scrollbar is needed it's treated like the
column header (and see the vertical scrollbar item).
- If the scrollpane has a non-null viewportBorder, then space
is allocated for that.
- The viewport gets the space available after accounting for
the previous constraints.
- The corner components, if provided, are aligned with the
ends of the scrollbars and headers. If there's a vertical
scrollbar the right corners appear, if there's a horizontal
scrollbar the lower corners appear, a row header gets left
corners and a column header gets upper corners.
- Specified by:
layoutContainer in interface java.awt.LayoutManager