|
|||||||||||
| 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.FixedLineLayout
FixedLineLayout extends LineLayout, and it makes each
line is as high as specified when constructing an object of this class.
Use this class if you want to line up multiple LineLayouts.
Note that Components will have their preferred height, but with a
maximum of the preset height. They will also be vertically centered in their line.
LineLayout,
VariableLineLayout,
GridLineLayout,
LargestLineLayout| Field Summary | |
protected int |
height
The height of each Component. |
| Fields inherited from class kirk.gui.layout.LineLayout |
|
| Constructor Summary | |
FixedLineLayout(int height)
Construct a new FixedLineLayout with the specified height, and
the default gap values. |
|
FixedLineLayout(int height,
int verticalgap)
Construct a new FixedLineLayout with the specified height, and
the specified vertical gap, and the default horizontal gap value. |
|
FixedLineLayout(int height,
int horizontalgap,
int verticalgap)
Construct a new FixedLineLayout with the specified height, and
the specified gap values. |
|
| Method Summary | |
int |
getHeight()
Returns the height value this LayoutManager uses. |
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. |
void |
setHeight(int height)
Sets the height value this LayoutManager uses. |
| 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 |
| Field Detail |
protected int height
Component.
| Constructor Detail |
public FixedLineLayout(int height,
int horizontalgap,
int verticalgap)
FixedLineLayout with the specified height, and
the specified gap values.
public FixedLineLayout(int height,
int verticalgap)
FixedLineLayout with the specified height, and
the specified vertical gap, and the default horizontal gap value.
public FixedLineLayout(int height)
FixedLineLayout with the specified height, and
the default gap values.
| Method Detail |
public int getHeight()
LayoutManager uses.
public void setHeight(int height)
LayoutManager uses.
height - The height of each Component.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 | ||||||||||