net.wotonomy.ui.swing.components
Class AbsoluteLayout

java.lang.Object
  extended by net.wotonomy.ui.swing.components.AbsoluteLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class AbsoluteLayout
extends java.lang.Object
implements java.awt.LayoutManager, java.io.Serializable

AbsoluteLayout specifies that all components in the container will be placed according to their size and their location relative to the container's origin.

You can achieve the same effect by setting a container's layout manager to null, but this class allows you to subclass it if you need specific control or functionality.

Version:
$Revision: 904 $
Author:
michael@mpowers.net, $Author: cgruber $
See Also:
Serialized Form

Constructor Summary
AbsoluteLayout()
           
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container parent)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsoluteLayout

public AbsoluteLayout()
Method Detail

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

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager


Copyright © 2006 null. All Rights Reserved.