|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectkirk.gui.layout.LineLayout
kirk.gui.layout.VariableLineLayout
kirk.gui.layout.CenteredLineLayout
CenteredLineLayout extends VariableLineLayout, and it
makes each component as high and wide as its preferred size. It also centers all
components horizontally.
Use this class if you don't want to waste space or if you want easy adding of
components under each other. This class is particularly useful for
PopupDialogs. Actually, it was written for that purpose.
This class is not a real LineLayout, since it manages the width of
its components itself... but it uses all the other inherited stuff. It even has
the same preferred and minimum size methods as VariableLineLayout.
LineLayout,
VariableLineLayout| Field Summary |
| Fields inherited from class kirk.gui.layout.LineLayout |
|
| Constructor Summary | |
CenteredLineLayout()
Constructs a new CenteredLineLayout. |
|
CenteredLineLayout(int verticalgap)
Constructs a new CenteredLineLayout with the given value for the
vertical gap, and the default value for the horizontal gap. |
|
CenteredLineLayout(int horizontalgap,
int verticalgap)
Constructs a new CenteredLineLayout with the given values for the
gaps. |
|
| Method Summary | |
void |
layoutContainer(Container parent)
Lays out the given Container. |
| Methods inherited from class kirk.gui.layout.VariableLineLayout |
minimumLayoutSize, preferredLayoutSize |
| Methods inherited from class kirk.gui.layout.LineLayout |
addLayoutComponent, getHorizontalGap, getMinimumWidth, getPreferredWidth, getVerticalGap, getWidth, removeLayoutComponent, setHorizontalGap, setVerticalGap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CenteredLineLayout(int horizontalgap,
int verticalgap)
CenteredLineLayout with the given values for the
gaps.
public CenteredLineLayout(int verticalgap)
CenteredLineLayout with the given value for the
vertical gap, and the default value for the horizontal gap.
public CenteredLineLayout()
CenteredLineLayout. Use the default values for
the gaps.
| Method Detail |
public void layoutContainer(Container parent)
Container.
layoutContainer in interface LayoutManagerlayoutContainer in class VariableLineLayoutparent - The Container to be layed out.LineLayout.layoutContainer(java.awt.Container),
LayoutManager.layoutContainer(java.awt.Container)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||