API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. ScrollPaneLayout View Source
Author(s)
Hans Muller
Since
Version
1.63 11/17/05
Serial
Hierarchy
 Object
      ScrollPaneLayout
Implements
 LayoutManager
 ScrollPaneConstants
 Serializable
Subclasses
Description
public class ScrollPaneLayout
  The layout manager used by JScrollPane.
See also:    JScrollPane JViewport
Constructors
public ScrollPaneLayout ()
Methods
Hide/Show inherited methods
public void addLayoutComponent (String s, Component c) [Specified in LayoutManager]
  Adds the specified component to the layout.
protected Component addSingletonComponent (Component oldC, Component newC)
  Removes an existing component.
public JViewport getColumnHeader ()
  Returns the JViewport object that is the column header.
public Component getCorner (String key)
  Returns the Component at the specified corner.
public JScrollBar getHorizontalScrollBar ()
  Returns the JScrollBar object that handles horizontal scrolling.
public int getHorizontalScrollBarPolicy ()
  Returns the horizontal scrollbar-display policy.
public JViewport getRowHeader ()
  Returns the JViewport object that is the row header.
public JScrollBar getVerticalScrollBar ()
  Returns the JScrollBar object that handles vertical scrolling.
public int getVerticalScrollBarPolicy ()
  Returns the vertical scrollbar-display policy.
public JViewport getViewport ()
  Returns the JViewport object that displays the scrollable contents.
@Deprecated
public Rectangle getViewportBorderBounds (JScrollPane scrollpane)
  Returns the bounds of the border around the specified scroll pane's viewport.
public void layoutContainer (Container parent) [Specified in LayoutManager]
  Lays out the scrollpane.
public Dimension minimumLayoutSize (Container parent) [Specified in LayoutManager]
  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.
public Dimension preferredLayoutSize (Container parent) [Specified in LayoutManager]
  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.
public void removeLayoutComponent (Component c) [Specified in LayoutManager]
  Removes the specified component from the layout.
public void setHorizontalScrollBarPolicy (int x)
  Sets the horizontal scrollbar-display policy.
public void setVerticalScrollBarPolicy (int x)
  Sets the vertical scrollbar-display policy.
public void syncWithScrollPane (JScrollPane sp)
  This method is invoked after the ScrollPaneLayout is set as the LayoutManager of a JScrollPane.
Fields
Hide/Show inherited fields
protected JViewport colHead
  The column header child.
publicfinalstatic String COLUMN_HEADER = "COLUMN_HEADER" [Inherited From ScrollPaneConstants]
Identifies the area at the top the viewport between the upper left corner and the upper right corner.
publicfinalstatic String HORIZONTAL_SCROLLBAR = "HORIZONTAL_SCROLLBAR" [Inherited From ScrollPaneConstants]
Identifies a horizonal scrollbar.
publicfinalstatic int HORIZONTAL_SCROLLBAR_ALWAYS = "32" [Inherited From ScrollPaneConstants]
Used to set the horizontal scroll bar policy so that horizontal scrollbars are always displayed.
publicfinalstatic int HORIZONTAL_SCROLLBAR_AS_NEEDED = "30" [Inherited From ScrollPaneConstants]
Used to set the horizontal scroll bar policy so that horizontal scrollbars are displayed only when needed.
publicfinalstatic int HORIZONTAL_SCROLLBAR_NEVER = "31" [Inherited From ScrollPaneConstants]
Used to set the horizontal scroll bar policy so that horizontal scrollbars are never displayed.
publicfinalstatic String HORIZONTAL_SCROLLBAR_POLICY = "HORIZONTAL_SCROLLBAR_POLICY" [Inherited From ScrollPaneConstants]
Identifies the horizontal scroll bar policy property.
protected JScrollBar hsb
  The scrollpane's horizontal scrollbar child.
protected int hsbPolicy
  The display policy for the horizontal scrollbar.
publicfinalstatic String LOWER_LEADING_CORNER = "LOWER_LEADING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the lower leading edge corner of the viewport.
publicfinalstatic String LOWER_LEFT_CORNER = "LOWER_LEFT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the lower left corner of the viewport.
publicfinalstatic String LOWER_RIGHT_CORNER = "LOWER_RIGHT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the lower right corner of the viewport.
publicfinalstatic String LOWER_TRAILING_CORNER = "LOWER_TRAILING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the lower trailing edge corner of the viewport.
protected Component lowerLeft
  The component to display in the lower left corner.
protected Component lowerRight
  The component to display in the lower right corner.
publicfinalstatic String ROW_HEADER = "ROW_HEADER" [Inherited From ScrollPaneConstants]
Identifies the area along the left side of the viewport between the upper left corner and the lower left corner.
protected JViewport rowHead
  The row header child.
publicfinalstatic String UPPER_LEADING_CORNER = "UPPER_LEADING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the upper leading edge corner of the viewport.
publicfinalstatic String UPPER_LEFT_CORNER = "UPPER_LEFT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the upper left corner of the viewport.
publicfinalstatic String UPPER_RIGHT_CORNER = "UPPER_RIGHT_CORNER" [Inherited From ScrollPaneConstants]
Identifies the upper right corner of the viewport.
publicfinalstatic String UPPER_TRAILING_CORNER = "UPPER_TRAILING_CORNER" [Inherited From ScrollPaneConstants]
  Identifies the upper trailing edge corner of the viewport.
protected Component upperLeft
  The component to display in the upper left corner.
protected Component upperRight
  The component to display in the upper right corner.
publicfinalstatic String VERTICAL_SCROLLBAR = "VERTICAL_SCROLLBAR" [Inherited From ScrollPaneConstants]
Identifies a vertical scrollbar.
publicfinalstatic int VERTICAL_SCROLLBAR_ALWAYS = "22" [Inherited From ScrollPaneConstants]
Used to set the vertical scroll bar policy so that vertical scrollbars are always displayed.
publicfinalstatic int VERTICAL_SCROLLBAR_AS_NEEDED = "20" [Inherited From ScrollPaneConstants]
Used to set the vertical scroll bar policy so that vertical scrollbars are displayed only when needed.
publicfinalstatic int VERTICAL_SCROLLBAR_NEVER = "21" [Inherited From ScrollPaneConstants]
Used to set the vertical scroll bar policy so that vertical scrollbars are never displayed.
publicfinalstatic String VERTICAL_SCROLLBAR_POLICY = "VERTICAL_SCROLLBAR_POLICY" [Inherited From ScrollPaneConstants]
Identifies the vertical scroll bar policy property.
protected JViewport viewport
  The scrollpane's viewport child.
publicfinalstatic String VIEWPORT = "VIEWPORT" [Inherited From ScrollPaneConstants]
Identifies a "viewport" or display area, within which scrolled contents are visible.
protected JScrollBar vsb
  The scrollpane's vertical scrollbar child.
protected int vsbPolicy
  The display policy for the vertical scrollbar.
Nested Classes
  ScrollPaneLayout.UIResource
The UI resource version of ScrollPaneLayout.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar