org.jurvis.awt
Class JvAbstractLayoutManager
java.lang.Object
org.jurvis.awt.JvAbstractLayoutManager
- All Implemented Interfaces:
- LayoutManager
- Direct Known Subclasses:
- JvAbstractLayoutManager2, JvColumnFillLayout
public abstract class JvAbstractLayoutManager
- extends Object
- implements LayoutManager
This class provides a skeletal implementation of the
LayoutManager interface, to minimize the effort required to
implement this interface.
- Author:
- Neil W. Weber
|
Field Summary |
protected int |
gap
The gap in pixels between components. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gap
protected int gap
- The gap in pixels between components. The default value is 0.
JvAbstractLayoutManager
public JvAbstractLayoutManager()
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- Adds the specified component with the specified name to
the layout.
- Specified by:
addLayoutComponent in interface LayoutManager
- Parameters:
name - the component namecomp - the component to be added
minimumLayoutSize
public Dimension minimumLayoutSize(Container parent)
- Calculates the minimum size dimensions for the specified
panel given the components in the specified parent container.
- Specified by:
minimumLayoutSize in interface LayoutManager
- Parameters:
parent - the component to be laid out
preferredLayoutSize
public Dimension preferredLayoutSize(Container parent)
- Calculates the preferred size dimensions for the specified
panel given the components in the specified parent container.
- Specified by:
preferredLayoutSize in interface LayoutManager
- Parameters:
parent - the component to be laid out
Copyright © 1999-2004 Neil W. Weber. All Rights Reserved.