public final class PsStackLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
HORIZONTAL
Horizontal stack.
|
static boolean |
VERTICAL
Vertical stack.
|
Constructor and Description |
---|
PsStackLayout(int gap)
Create new layout manager with given gap between adjacent components.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp) |
void |
layoutContainer(java.awt.Container parent) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent) |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent) |
void |
removeLayoutComponent(java.awt.Component comp) |
void |
setType(boolean bVertical)
Set flag if stack is vertical (default, true) or horizontal.
|
public static final boolean VERTICAL
public static final boolean HORIZONTAL
public PsStackLayout(int gap)
gap
- Gap between adjacent components.public void setType(boolean bVertical)
bVertical
- true
if components are vertically stacked, else horizontal stack.public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
"