|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kirk.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
Component
s 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(java.awt.Container parent)
Lays out the given Container . |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Returns the minimum size of the Container if it get's layed out
by this LayoutManager . |
java.awt.Dimension |
preferredLayoutSize(java.awt.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 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Container
if it get's layed out
by this LayoutManager
.
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class LineLayout
parent
- The Container
that the preferred size is wanted of.LineLayout.preferredLayoutSize(java.awt.Container)
,
LayoutManager.preferredLayoutSize(java.awt.Container)
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Container
if it get's layed out
by this LayoutManager
.
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class LineLayout
parent
- The Container
that the minimum size is wanted of.LineLayout.minimumLayoutSize(java.awt.Container)
,
LayoutManager.minimumLayoutSize(java.awt.Container)
public void layoutContainer(java.awt.Container parent)
Container
.
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class LineLayout
parent
- 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 |