protected class DefaultDockingPort.PortLayout extends Object implements LayoutManager2, Serializable
Modifier | Constructor and Description |
---|---|
protected |
DefaultDockingPort.PortLayout() |
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 LayoutManager
parent
- the Container for which this layout manager is being usedpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize
in interface LayoutManager
parent
- the Container for which this layout manager is being usedpublic Dimension maximumLayoutSize(Container target)
maximumLayoutSize
in interface LayoutManager2
target
- the Container for which this layout manager is being usedpublic void layoutContainer(Container parent)
layoutContainer
in interface LayoutManager
parent
- the Container for which this layout manager is being usedpublic void addLayoutComponent(String name, Component comp)
addLayoutComponent
in interface LayoutManager
public void removeLayoutComponent(Component comp)
removeLayoutComponent
in interface LayoutManager
public void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent
in interface LayoutManager2
public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX
in interface LayoutManager2
public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY
in interface LayoutManager2
public void invalidateLayout(Container target)
invalidateLayout
in interface LayoutManager2