|
org.openide.awt 6.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.FlowLayout org.openide.awt.EqualFlowLayout
public class EqualFlowLayout
EqualFlowLayout is a layout manager that works the same way as FlowLayout. The only difference is that it sizes the components so that they all have the same width (a width of widest component).
Field Summary |
---|
Fields inherited from class java.awt.FlowLayout |
---|
CENTER, LEADING, LEFT, RIGHT, TRAILING |
Constructor Summary | |
---|---|
EqualFlowLayout()
Deprecated. Constructs a new Flow Layout with a centered alignment and a default 5-unit horizontal and vertical gap. |
|
EqualFlowLayout(int align)
Deprecated. Constructs a new Flow Layout with the specified alignment and a default 5-unit horizontal and vertical gap. |
|
EqualFlowLayout(int align,
int hgap,
int vgap)
Deprecated. Creates a new flow layout manager with the indicated alignment and the indicated horizontal and vertical gaps. |
Method Summary | |
---|---|
void |
layoutContainer(Container target)
Deprecated. Lays out the container. |
Dimension |
minimumLayoutSize(Container target)
Deprecated. Returns the minimum dimensions needed to layout the components contained in the specified target container. |
Dimension |
preferredLayoutSize(Container target)
Deprecated. Returns the preferred dimensions for this layout given the components in the specified target container. |
Methods inherited from class java.awt.FlowLayout |
---|
addLayoutComponent, getAlignment, getHgap, getVgap, removeLayoutComponent, setAlignment, setHgap, setVgap, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EqualFlowLayout()
public EqualFlowLayout(int align)
FlowLayout.LEFT
, FlowLayout.RIGHT
,
or FlowLayout.CENTER
.
align
- the alignment valuepublic EqualFlowLayout(int align, int hgap, int vgap)
The value of the alignment argument must be one of
FlowLayout.LEFT
, FlowLayout.RIGHT
,
or FlowLayout.CENTER
.
align
- the alignment value.hgap
- the horizontal gap between components.vgap
- the vertical gap between components.Method Detail |
---|
public Dimension preferredLayoutSize(Container target)
preferredLayoutSize
in interface LayoutManager
preferredLayoutSize
in class FlowLayout
target
- the component which needs to be laid out
Container
,
minimumLayoutSize(java.awt.Container)
,
Container.getPreferredSize()
public Dimension minimumLayoutSize(Container target)
minimumLayoutSize
in interface LayoutManager
minimumLayoutSize
in class FlowLayout
target
- the component which needs to be laid out
preferredLayoutSize(java.awt.Container)
,
Container
,
Container.doLayout()
public void layoutContainer(Container target)
FlowLayout
object.
layoutContainer
in interface LayoutManager
layoutContainer
in class FlowLayout
target
- the specified component being laid out.Container
,
Container.doLayout()
|
org.openide.awt 6.7.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |