com.alee.extended.layout
Class ComponentPanelLayout

java.lang.Object
  extended by com.alee.extended.layout.AbstractLayoutManager
      extended by 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
           
 
Constructor Summary
ComponentPanelLayout()
           
 
Method Summary
 void addComponent(java.awt.Component component, java.lang.Object constraints)
          Caled when component added into container with this layout.
 java.awt.Component getComponent(int index)
           
 java.util.List<java.awt.Component> getComponents()
           
 java.lang.Integer getComponentShift(java.awt.Component component)
           
 int indexOf(java.awt.Component component)
           
 void insertLayoutComponent(int index, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container parent)
          
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          
 void removeComponent(java.awt.Component component)
          Called when component removed from container with this layout.
 void setComponentShift(java.awt.Component component, java.lang.Integer shift)
           
 
Methods inherited from class com.alee.extended.layout.AbstractLayoutManager
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, removeLayoutComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

components

protected java.util.List<java.awt.Component> components

yShift

protected java.util.Map<java.awt.Component,java.lang.Integer> yShift
Constructor Detail

ComponentPanelLayout

public ComponentPanelLayout()
Method Detail

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 component
constraints - 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)