org.zaval.awt.gdp
Class DgnContainerLayout


java.lang.Object

  |

  +--org.zaval.awt.gdp.DgnContainerLayout

All Implemented Interfaces:
java.awt.LayoutManager

public class DgnContainerLayout
extends java.lang.Object
implements java.awt.LayoutManager

This layout manager is supposed to be used for designer container components.


Constructor Summary
DgnContainerLayout()
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component c)
           Adds the specified component with the specified name to the layout.
 void layoutContainer(java.awt.Container p)
           Lays out the container in the specified panel.
 java.awt.Dimension minimumLayoutSize(java.awt.Container p)
           Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
 java.awt.Dimension preferredLayoutSize(java.awt.Container p)
           Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
 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
 

Constructor Detail

DgnContainerLayout


public DgnContainerLayout()
Method Detail

layoutContainer


public void layoutContainer(java.awt.Container p)
Lays out the container in the specified panel.
Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
p - the component which needs to be laid out.

minimumLayoutSize


public java.awt.Dimension minimumLayoutSize(java.awt.Container p)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
p - the component to be laid out

preferredLayoutSize


public java.awt.Dimension preferredLayoutSize(java.awt.Container p)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
p - the component to be laid out

removeLayoutComponent


public void removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout.
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - the component ot be removed

addLayoutComponent


public void addLayoutComponent(java.lang.String name,
                               java.awt.Component c)
Adds the specified component with the specified name to the layout.
Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - the component name.
c - the component to be added.


Copyright © Zaval Creative Engineering Group, 2000-2005
http://www.zaval.org