|
|||||||||||
| 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
VariableLineLayout extends LineLayout, and it makes
each Component as high as its preferred size.
Use this class if you don't want to waste space or if you want easy adding of
Components under each other (like in a Dialog or
something).
LineLayout,
FixedLineLayout,
GridLineLayout,
LargestLineLayout| Field Summary |
| Fields inherited from class kirk.gui.layout.LineLayout |
|
| Constructor Summary | |
VariableLineLayout()
Constructs a new VariableLineLayout. |
|
VariableLineLayout(int verticalgap)
Constructs a new VariableLineLayout with the given value for the
vertical gap, and the default value for the horizontal gap. |
|
VariableLineLayout(int horizontalgap,
int verticalgap)
Constructs a new VariableLineLayout with the given values for the
gaps. |
|
| Method Summary | |
void |
layoutContainer(Container parent)
Lays out the given Container. |
Dimension |
minimumLayoutSize(Container parent)
Returns the minimum size of the Container if it get's layed out
by this LayoutManager. |
Dimension |
preferredLayoutSize(Container parent)
Returns the preferred size of the Container if it get's layed out
by this LayoutManager. |
| 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 VariableLineLayout(int horizontalgap,
int verticalgap)
VariableLineLayout with the given values for the
gaps.
public VariableLineLayout(int verticalgap)
VariableLineLayout with the given value for the
vertical gap, and the default value for the horizontal gap.
public VariableLineLayout()
VariableLineLayout. Use the default values for
the gaps.
| Method Detail |
public Dimension preferredLayoutSize(Container parent)
Container if it get's layed out
by this LayoutManager.
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class LineLayoutparent - The Container that the preferred size is wanted of.LineLayout.preferredLayoutSize(java.awt.Container),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension minimumLayoutSize(Container parent)
Container if it get's layed out
by this LayoutManager.
minimumLayoutSize in interface LayoutManagerminimumLayoutSize in class LineLayoutparent - The Container that the minimum size is wanted of.LineLayout.minimumLayoutSize(java.awt.Container),
LayoutManager.minimumLayoutSize(java.awt.Container)public void layoutContainer(Container parent)
Container.
layoutContainer in interface LayoutManagerlayoutContainer in class LineLayoutparent - 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 | ||||||||||