|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kirk.gui.LineLayout | +--kirk.gui.GridLineLayout
GridLineLayout extends LineLayout, and each line is vertically treated like with GridLayout: The size is proportional to the maximum size of the container using this layout, depending on how many lines there are. Use this class if you want to line up multiple LineLayouts in a resizable window where the components are relatively placed. Or something. Note that components will have their preferred height, but with a maximum of the line height. They will also be vertically centered in their line.
LineLayout
,
VariableLineLayout
,
FixedLineLayout
,
LargestLineLayout
Field Summary |
Fields inherited from class kirk.gui.LineLayout |
|
Constructor Summary | |
GridLineLayout()
Construct a new GridLineLayout with the default gap values. |
|
GridLineLayout(int verticalgap)
Construct a new GridLineLayout with the default horizontal gap value and the specified vertical gap value. |
|
GridLineLayout(int horizontalgap,
int verticalgap)
Construct a new GridLineLayoutwith the specified gap values. |
Method Summary | |
int |
getLargestMinimumHeight(java.awt.Container parent)
Returns the largest minimum height among the visible components in parent . |
int |
getLargestPreferredHeight(java.awt.Container parent)
Returns the largest preferred height among the visible components in parent . |
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.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 GridLineLayout(int horizontalgap, int verticalgap)
public GridLineLayout(int verticalgap)
public GridLineLayout()
Method Detail |
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)
public int getLargestPreferredHeight(java.awt.Container parent)
parent
.
parent
- The container of which the visible components are checked.
parent
.public int getLargestMinimumHeight(java.awt.Container parent)
parent
.
parent
- The container of which the visible components are checked.
parent
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |