com.tensegrity.gui.swing
Class AbstractLayoutManager
java.lang.Object
com.tensegrity.gui.swing.AbstractLayoutManager
- All Implemented Interfaces:
- java.awt.LayoutManager, java.awt.LayoutManager2
- Direct Known Subclasses:
- SlidePanel.SlideLayout
- public abstract class AbstractLayoutManager
- extends java.lang.Object
- implements java.awt.LayoutManager2, java.awt.LayoutManager
Abstract base class for simple (non LayoutManager2) layout managers.
Can be used for LayoutManager2 to by extension.
It has some basic functionality for managing the components it has to
layout.
The abstract methods are to be overridden by a specific implementation.
- Version:
- $Id: AbstractLayoutManager.java,v 1.6 2003/12/01 17:30:28 sr Exp $
- Author:
- Stepan Rutz
|
Field Summary |
protected java.util.List |
components
Internal list of all components this manager needs to layout. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
components
protected java.util.List components
- Internal list of all components this manager needs to layout.
AbstractLayoutManager
public AbstractLayoutManager()
- Creates a new
AbstractLayoutManager.
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
- Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
addLayoutComponent
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
- Specified by:
addLayoutComponent in interface java.awt.LayoutManager
addLayoutComponent
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
- Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
layoutContainer
public abstract void layoutContainer(java.awt.Container parent)
- Specified by:
layoutContainer in interface java.awt.LayoutManager
minimumLayoutSize
public abstract java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
preferredLayoutSize
public abstract java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Specified by:
preferredLayoutSize 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
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.