|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kirk.gui.LineLayout | +--kirk.gui.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.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.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
Constructor Detail |
public FixedLineLayout(int height, int horizontalgap, int verticalgap)
public FixedLineLayout(int height, int verticalgap)
public FixedLineLayout(int height)
Method Detail |
public int getHeight()
public void setHeight(int height)
height
- The height of each component.public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
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)
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)
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 |