@Deprecated public class EqualFlowLayout extends FlowLayout
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString
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.public Dimension preferredLayoutSize(Container target)
preferredLayoutSize
in interface LayoutManager
preferredLayoutSize
in class FlowLayout
target
- the component which needs to be laid outContainer
,
EqualFlowLayout.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 outEqualFlowLayout.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()