com.alee.extended.layout
Class AbstractLayoutManager

java.lang.Object
  extended by com.alee.extended.layout.AbstractLayoutManager
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2
Direct Known Subclasses:
AccordionLayout, AlignLayout, BreadcrumbLayout, ComponentPanelLayout, DockingPaneLayout, DynamicMenuLayout, FormLayout, GroupLayout, HorizontalFlowLayout, HorizontalOverflowLayout, MultiLayout, NotificationsLayout, OverlayLayout, SlidingLayout, StackLayout, TextComponentLayout, ToolbarLayout, WebComboBoxUI.WebComboBoxLayout, WebFileListCellRenderer.FileCellLayout, WebRootPaneLayout, WebSwitchLayout, WrapFlowLayout

public abstract class AbstractLayoutManager
extends java.lang.Object
implements java.awt.LayoutManager2

This an abstract layout manager that hides some less frequently used layout methods.

Author:
Mikle Garin

Constructor Summary
AbstractLayoutManager()
           
 
Method Summary
 void addComponent(java.awt.Component component, java.lang.Object constraints)
          Caled when component added into container with this layout.
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
          
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          
 float getLayoutAlignmentX(java.awt.Container target)
          
 float getLayoutAlignmentY(java.awt.Container target)
          
 void invalidateLayout(java.awt.Container target)
          
 java.awt.Dimension maximumLayoutSize(java.awt.Container target)
          
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          
 void removeComponent(java.awt.Component component)
          Called when component removed from container with this layout.
 void removeLayoutComponent(java.awt.Component comp)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.LayoutManager
layoutContainer, preferredLayoutSize
 

Constructor Detail

AbstractLayoutManager

public AbstractLayoutManager()
Method Detail

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraints)

Specified by:
addLayoutComponent in interface java.awt.LayoutManager2

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)

Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

addComponent

public void addComponent(java.awt.Component component,
                         java.lang.Object constraints)
Caled when component added into container with this layout.

Parameters:
component - added component
constraints - component constraints

removeComponent

public void removeComponent(java.awt.Component component)
Called when component removed from container with this layout.

Parameters:
component - removed component

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container target)

Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container target)

Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container target)

Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2

invalidateLayout

public void invalidateLayout(java.awt.Container target)

Specified by:
invalidateLayout in interface java.awt.LayoutManager2