simtools.ui
Class DesktopCardPanel.PanelsPaneLayout

java.lang.Object
  extended by simtools.ui.DesktopCardPanel.PanelsPaneLayout
All Implemented Interfaces:
java.awt.LayoutManager
Enclosing class:
DesktopCardPanel

public class DesktopCardPanel.PanelsPaneLayout
extends java.lang.Object
implements java.awt.LayoutManager

The Layout for the panel which holds the component panels


Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Adds the specified component to the layout.
 void layoutContainer(java.awt.Container target)
          Lays out the container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          Returns the minimum dimensions for this layout
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          Returns the preferred dimensions for this layout
 void removeLayoutComponent(java.awt.Component comp)
          Removes the specified component from the layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Adds the specified component to the layout. Not used by this class.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - the name of the component
comp - the component to be added

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. Not used by this class.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - the component to remove

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
target - the component which needs to be laid out
Returns:
the preferred dimensions to lay out

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions for this layout

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
target - the component which needs to be laid out
Returns:
the minimum dimensions to lay out

layoutContainer

public void layoutContainer(java.awt.Container target)
Lays out the container. This method reshape to its container size the component it holds

Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
target - the specified component being laid out.
See Also:
Container, Container.doLayout()