org.flexdock.view
protected class View.ViewLayout extends Object implements LayoutManager2, Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
View.ViewLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints) |
void |
addLayoutComponent(String name,
Component comp) |
float |
getLayoutAlignmentX(Container target) |
float |
getLayoutAlignmentY(Container target) |
void |
invalidateLayout(Container target) |
void |
layoutContainer(Container parent)
Instructs the layout manager to perform the layout for the specified
container.
|
Dimension |
maximumLayoutSize(Container target)
Returns the maximum amount of space the layout can use.
|
Dimension |
minimumLayoutSize(Container parent)
Returns the minimum amount of space the layout needs.
|
Dimension |
preferredLayoutSize(Container parent)
Returns the amount of space the layout would like to have.
|
void |
removeLayoutComponent(Component comp) |
public Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerparent - the Container for which this layout manager is being usedpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerparent - the Container for which this layout manager is being usedpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2target - the Container for which this layout manager is being usedpublic void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerparent - the Container for which this layout manager is being usedpublic void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerpublic void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent in interface LayoutManager2public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2