public class FlowLayout extends Layout
Constructor and Description |
---|
FlowLayout()
Creates a new instance of FlowLayout with left alignment
|
FlowLayout(int orientation)
Creates a new instance of FlowLayout with the given orientation one of
LEFT, RIGHT or CENTER
|
Modifier and Type | Method and Description |
---|---|
Dimension |
getPreferredSize(Container parent)
Returns the container preferred size
|
void |
layoutContainer(Container parent)
Layout the given parent container children
|
addLayoutComponent, getComponentConstraint, isOverlapSupported, removeLayoutComponent
public FlowLayout()
public FlowLayout(int orientation)
orientation
- the orientation valuepublic void layoutContainer(Container parent)
Layout
layoutContainer
in class Layout
parent
- the given parent containerpublic Dimension getPreferredSize(Container parent)
Layout
getPreferredSize
in class Layout
parent
- the parent container