|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.swingext.LabelledLayout
This layout manager lines up components in 2 columns. All JLabels are the first column and any component the JLabel is registered with is in a second column next to the label.
The height of each row is the largest minimum height of the 2 components.
The width of the first column is the largest preferred width of the 2 components.
The width of the 2nd column is any left over space or the maximum width of the component, whichever is the least.
LabelledLayout can show multiple panels of label/component pairs. The seperation of these panels is indicated by adding a Seperator component to the parent component. Labelled layout starts a new panel when detecting this Seperator.
Constructor Summary | |
---|---|
LabelledLayout()
Construct a new LabelledLayout. |
|
LabelledLayout(boolean ignoreSplitters)
Construct a new LabelledLayout. |
|
LabelledLayout(int hgap,
int vgap)
Construct a new horizontal LabelledLayout with the specified cell spacing. |
Method Summary | |
---|---|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the specified name to the layout. |
int |
getHgap()
|
static org.argouml.swingext.Seperator |
getSeperator()
|
int |
getVgap()
|
void |
layoutContainer(java.awt.Container parent)
|
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Determines the preferred size of the container argument using this labelled layout. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component with the specified name from the layout. |
void |
setHgap(int hgap)
|
void |
setVgap(int vgap)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LabelledLayout()
public LabelledLayout(boolean ignoreSplitters)
public LabelledLayout(int hgap, int vgap)
Method Detail |
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
name
- the name of the componentcomp
- the component to be addedpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
minimumLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
public static org.argouml.swingext.Seperator getSeperator()
public int getHgap()
public void setHgap(int hgap)
public int getVgap()
public void setVgap(int vgap)
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040216) | ArgoUML Project Home | ArgoUML Cookbook |