com.alee.extended.layout
Class PreferredCardLayout

java.lang.Object
  extended by java.awt.CardLayout
      extended by com.alee.extended.layout.PreferredCardLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable

public class PreferredCardLayout
extends java.awt.CardLayout

Author:
Mikle Garin
See Also:
Serialized Form

Constructor Summary
PreferredCardLayout()
           
 
Method Summary
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Calculates the minimum size for the specified panel.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Determines the preferred size of the container argument using this card layout.
 
Methods inherited from class java.awt.CardLayout
addLayoutComponent, addLayoutComponent, first, getHgap, getLayoutAlignmentX, getLayoutAlignmentY, getVgap, invalidateLayout, last, layoutContainer, maximumLayoutSize, next, previous, removeLayoutComponent, setHgap, setVgap, show, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PreferredCardLayout

public PreferredCardLayout()
Method Detail

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Determines the preferred size of the container argument using this card layout.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.CardLayout
Parameters:
parent - the parent container in which to do the layout
Returns:
the preferred dimensions to lay out the subcomponents of the specified container
See Also:
Container.getPreferredSize(), CardLayout.minimumLayoutSize(java.awt.Container)

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Calculates the minimum size for the specified panel.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class java.awt.CardLayout
Parameters:
parent - the parent container in which to do the layout
Returns:
the minimum dimensions required to lay out the subcomponents of the specified container
See Also:
Container.doLayout(), CardLayout.preferredLayoutSize(java.awt.Container)