|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.HorizontalLayout
public class HorizontalLayout
Organizes components in a horizontal layout.
Constructor Summary | |
---|---|
HorizontalLayout()
|
|
HorizontalLayout(int gap)
|
Method Summary | |
---|---|
void |
addLayoutComponent(String name,
Component c)
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 |
getGap()
|
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 c)
Removes the specified component from the layout. |
void |
setGap(int gap)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HorizontalLayout()
public HorizontalLayout(int gap)
Method Detail |
---|
public int getGap()
public void setGap(int gap)
public void addLayoutComponent(String name, Component c)
java.awt.LayoutManager
comp
to the layout,
associating it
with the string specified by name
.
addLayoutComponent
in interface LayoutManager
name
- the string to be associated with the componentc
- the component to be addedpublic void layoutContainer(Container parent)
java.awt.LayoutManager
layoutContainer
in interface LayoutManager
parent
- the container to be laid outpublic Dimension minimumLayoutSize(Container parent)
java.awt.LayoutManager
minimumLayoutSize
in interface LayoutManager
parent
- the component to be laid outLayoutManager.preferredLayoutSize(java.awt.Container)
public Dimension preferredLayoutSize(Container parent)
java.awt.LayoutManager
preferredLayoutSize
in interface LayoutManager
parent
- the container to be laid outLayoutManager.minimumLayoutSize(java.awt.Container)
public void removeLayoutComponent(Component c)
java.awt.LayoutManager
removeLayoutComponent
in interface LayoutManager
c
- the component to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |