|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcds.gui.CColumnLayout
Column Layout. Displays components columnwise in four different modes: LEFT or RIGHT adjusted, CENTERed or JUSTIFIED on the whole width. The gap between two components can be adjusted.
| Field Summary | |
static int |
CENTER
|
static int |
JUSTIFY
|
static int |
LEFT
|
private int |
minHeight
|
private int |
minWidth
|
private int |
preferredHeight
|
private int |
preferredWidth
|
static int |
RIGHT
|
private boolean |
sizeUnknown
|
private int |
type
|
private int |
vgap
|
| Constructor Summary | |
CColumnLayout()
Default constructor. |
|
CColumnLayout(int type)
Constructor specifying the alignement type |
|
CColumnLayout(int type,
int vgap)
Constructor fully specified |
|
| Method Summary | |
private void |
addInsets(java.awt.Dimension dim,
java.awt.Container c)
utility routine adding the container insets to the given dimension |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
|
void |
layoutContainer(java.awt.Container parent)
This method is called when the panel is first displayed, and every time its size changes. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Compute the minimum size of the container |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Compute the preferred size of all the components in the container This method is called by the doLayout() method |
void |
removeLayoutComponent(java.awt.Component comp)
|
java.lang.String |
toString()
Displays the CColumnLayout object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int LEFT
public static final int RIGHT
public static final int CENTER
public static final int JUSTIFY
private int type
private int vgap
private int minWidth
private int minHeight
private int preferredWidth
private int preferredHeight
private boolean sizeUnknown
| Constructor Detail |
public CColumnLayout()
public CColumnLayout(int type)
type - alignement type: CColumnLayout.LEFT, .RIGHT, .CENTER, .JUSTIFY
public CColumnLayout(int type,
int vgap)
type - alignement type: CColumnLayout.LEFT, .RIGHT, .CENTER, .JUSTIFYvgap - vertical gap to insert between components| Method Detail |
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagerpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagerpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize in interface java.awt.LayoutManagerparent - container defined with this layout
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize in interface java.awt.LayoutManagerparent - container defined with this layout
public void layoutContainer(java.awt.Container parent)
layoutContainer in interface java.awt.LayoutManagerparent - container having this layout specified and which should be
layed out.
private void addInsets(java.awt.Dimension dim,
java.awt.Container c)
dim - dimension to increment (Dimension are mutable objects)c - container from which the inserts are added to the dimensionpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||