com.alee.extended.layout
Class ComponentPanelLayout
java.lang.Object
com.alee.extended.layout.AbstractLayoutManager
com.alee.extended.layout.ComponentPanelLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.awt.LayoutManager2
public class ComponentPanelLayout
- extends AbstractLayoutManager
User: mgarin Date: 30.05.12 Time: 17:54
Field Summary |
protected java.util.List<java.awt.Component> |
components
|
protected java.util.Map<java.awt.Component,java.lang.Integer> |
yShift
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
components
protected java.util.List<java.awt.Component> components
yShift
protected java.util.Map<java.awt.Component,java.lang.Integer> yShift
ComponentPanelLayout
public ComponentPanelLayout()
getComponents
public java.util.List<java.awt.Component> getComponents()
setComponentShift
public void setComponentShift(java.awt.Component component,
java.lang.Integer shift)
getComponentShift
public java.lang.Integer getComponentShift(java.awt.Component component)
indexOf
public int indexOf(java.awt.Component component)
getComponent
public java.awt.Component getComponent(int index)
addComponent
public void addComponent(java.awt.Component component,
java.lang.Object constraints)
- Description copied from class:
AbstractLayoutManager
- Caled when component added into container with this layout.
- Overrides:
addComponent
in class AbstractLayoutManager
- Parameters:
component
- added componentconstraints
- component constraints
removeComponent
public void removeComponent(java.awt.Component component)
- Description copied from class:
AbstractLayoutManager
- Called when component removed from container with this layout.
- Overrides:
removeComponent
in class AbstractLayoutManager
- Parameters:
component
- removed component
insertLayoutComponent
public void insertLayoutComponent(int index,
java.awt.Component comp)
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
-
layoutContainer
public void layoutContainer(java.awt.Container parent)
-