org.jurvis.awt
Class JvAbstractLayoutManager

java.lang.Object
  extended by 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.
 
Constructor Summary
JvAbstractLayoutManager()
           
 
Method Summary
 void addLayoutComponent(String name, Component comp)
          Adds the specified component with the specified name to the layout.
 Dimension minimumLayoutSize(Container parent)
          Calculates the minimum size dimensions for the specified panel given the components in the specified parent container.
 Dimension preferredLayoutSize(Container parent)
          Calculates the preferred size dimensions for the specified panel given the components in the specified parent container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.LayoutManager
layoutContainer, removeLayoutComponent
 

Field Detail

gap

protected int gap
The gap in pixels between components. The default value is 0.

Constructor Detail

JvAbstractLayoutManager

public JvAbstractLayoutManager()
Method Detail

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 name
comp - 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.