|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.visuals.ScrollbarLayout
public class ScrollbarLayout
ScrollbarLayout is layout manager which works like a BorderLayout to layout out scrollbars within a container. ScrollbarLayout, however, is different from BorderLayout in that it does not stretch the scrollbars in the horizontal positions to be the width of the component if there is a vertical scrollbar visible.
Scrollbars have to be added in the North, South,
East or West positions in order to be
displayed on one of the edges of the container, similar to BorderLayout.
The actual location of the scrollbars, however, is determined by the location property
which is set during construction of a ScrollbarLayout. The possible
values are: TOP, LEFT, BOTTOM,
RIGHT or a combination of two of these. For example, to
have the scrollbars on the right and at the bottom BOTTOM | RIGHT would
be specified in the constructor.
Any component can be added to using
Center
Field Summary
protected java.awt.Component_contents
protected int_location
protected java.awt.Component[]_scrollbar
static intBOTTOM
static java.lang.StringCENTER
static java.lang.StringEAST
protected static intHORIZONTAL
static intLEFT
static java.lang.StringNORTH
static intRIGHT
static java.lang.StringSOUTH
static intTOP
protected static intVERTICAL
static java.lang.StringWEST
Constructor Summary
ScrollbarLayout()
Constructs a ScrollbarLayout.
ScrollbarLayout(int location)
Contsructs a ScrollbarLayout that places the
scrollbars at location.
Method Summary
voidaddLayoutComponent(java.lang.String name,
java.awt.Component comp)
voidlayoutContainer(java.awt.Container parent)
java.awt.DimensionminimumLayoutSize(java.awt.Container parent)
java.awt.DimensionpreferredLayoutSize(java.awt.Container parent)
voidremoveLayoutComponent(java.awt.Component comp)
Field Detail
CENTER
public static final java.lang.String CENTER
NORTH
public static final java.lang.String NORTH
SOUTH
public static final java.lang.String SOUTH
EAST
public static final java.lang.String EAST
WEST
public static final java.lang.String WEST
TOP
public static final int TOP
BOTTOM
public static final int BOTTOM
LEFT
public static final int LEFT
RIGHT
public static final int RIGHT
HORIZONTAL
protected static final int HORIZONTAL
VERTICAL
protected static final int VERTICAL
_scrollbar
protected java.awt.Component[] _scrollbar
_contents
protected java.awt.Component _contents
_location
protected int _location
Constructor Detail
ScrollbarLayout
public ScrollbarLayout()
ScrollbarLayout
public ScrollbarLayout(int location)
location - the location of the scrollbars
Method Detail
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManager
All Libraries
This Library
Package
Class
Use
Tree
Deprecated
Index
Grand Index
Help
Components
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
Copyright © 2009 SAS Institute Inc. All Rights Reserved.