|
|||||||||||
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.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(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 . |
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 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 |