|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.swing.ColumnLayout
public class ColumnLayout
Layout similar to FlowLayout, but using columns (vertical layout) instead of rows (horizontal layout).
| Constructor Summary | |
|---|---|
ColumnLayout()
Create a ColumnLayout with default gaps (4, 4). |
|
ColumnLayout(int hgap,
int vgap)
Create a ColumnLayout with defined gaps. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
If the layout manager uses a per-component string, adds the component comp to the layout,
associating it
with the string specified by name. |
int |
getHgap()
Returns horizontal Gap. |
int |
getVgap()
Returns vertical Gap. |
void |
layoutContainer(Container parent)
Lays out the specified container. |
Dimension |
minimumLayoutSize(Container parent)
Calculates the minimum size dimensions for the specified container, given the components it contains. |
Dimension |
preferredLayoutSize(Container parent)
Calculates the preferred size dimensions for the specified container, given the components it contains. |
void |
removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void |
setHgap(int hgap)
Sets horizontal Gap. |
void |
setVgap(int vgap)
Sets vertical Gap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnLayout()
public ColumnLayout(int hgap,
int vgap)
hgap - horizontal gapvgap - vertical gap| Method Detail |
|---|
public int getHgap()
public void setHgap(int hgap)
hgap - horizontal Gap.public int getVgap()
public void setVgap(int vgap)
vgap - vertical Gap.
public void addLayoutComponent(@Nullable
String name,
@Nullable
Component comp)
comp to the layout,
associating it
with the string specified by name.
addLayoutComponent in interface LayoutManagername - the string to be associated with the componentcomp - the component to be added
public void removeLayoutComponent(@Nullable
Component comp)
removeLayoutComponent in interface LayoutManagercomp - the component to be removed
@NotNull
public Dimension preferredLayoutSize(@NotNull
Container parent)
preferredLayoutSize in interface LayoutManagerparent - the container to be laid outLayoutManager.minimumLayoutSize(java.awt.Container)
@NotNull
public Dimension minimumLayoutSize(@NotNull
Container parent)
minimumLayoutSize in interface LayoutManagerparent - the component to be laid outLayoutManager.preferredLayoutSize(java.awt.Container)
public void layoutContainer(@NotNull
Container parent)
layoutContainer in interface LayoutManagerparent - the container to be laid out
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||