public class FlawLayout
extends java.awt.FlowLayout
implements java.awt.LayoutManager2
Constructor and Description |
---|
FlawLayout() |
FlawLayout(int align) |
FlawLayout(int align,
int hgap,
int vgap) |
Modifier and Type | Method and Description |
---|---|
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints) |
static java.awt.Component |
createNewLine() |
float |
getLayoutAlignmentX(java.awt.Container target) |
float |
getLayoutAlignmentY(java.awt.Container target) |
void |
invalidateLayout(java.awt.Container target) |
void |
layoutContainer(java.awt.Container target)
Lays out the container.
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target) |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the visible
components contained in the specified target container.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout given the
visible components in the specified target container.
|
void |
removeLayoutComponent(java.awt.Component comp) |
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString
public FlawLayout()
public FlawLayout(int align, int hgap, int vgap)
public FlawLayout(int align)
public static java.awt.Component createNewLine()
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
removeLayoutComponent
in class java.awt.FlowLayout
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
public final void layoutContainer(java.awt.Container target)
FlowLayout
object.layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class java.awt.FlowLayout
target
- the specified component being laid outContainer
,
Container.doLayout()
public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class java.awt.FlowLayout
target
- the component which needs to be laid outpublic java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
minimumLayoutSize
in class java.awt.FlowLayout
target
- the component which needs to be laid out