|
|||||||||||
| 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.LargestLineLayout
LargestLineLayout extends LineLayout, and each line
has the same height. This height is determined by the largest preferred height
under all the Components.
This class was an accident... I accidentally made it while writing
GridLineLayout.
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,
GridLineLayout| Field Summary |
| Fields inherited from class kirk.gui.layout.LineLayout |
|
| Constructor Summary | |
LargestLineLayout()
Construct a new LargestLineLayout with the default gap values. |
|
LargestLineLayout(int verticalgap)
Construct a new LargestLineLayout with the default horizontal
gap value and the specified vertical gap value. |
|
LargestLineLayout(int horizontalgap,
int verticalgap)
Construct a new LargestLineLayout the specified gap values. |
|
| Method Summary | |
int |
getLargestMinimumHeight(Container parent)
Returns the largest minimum height among the visible Components
in parent. |
int |
getLargestPreferredHeight(Container parent)
Returns the largest preferred height among the visible components in parent. |
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. |
| 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 LargestLineLayout(int horizontalgap,
int verticalgap)
LargestLineLayout the specified gap values.
public LargestLineLayout(int verticalgap)
LargestLineLayout with the default horizontal
gap value and the specified vertical gap value.
public LargestLineLayout()
LargestLineLayout with the default gap values.
| Method Detail |
public Dimension preferredLayoutSize(Container parent)
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)
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)public int getLargestPreferredHeight(Container parent)
parent.
parent - The Container of which the visible
Components are checked.
Components
in parent.public int getLargestMinimumHeight(Container parent)
Components
in parent.
parent - The container of which the visible Components are
checked.
Components
in parent.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||