de.uni_paderborn.fujaba.fsa.swing
Class ColumnRowLayout

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.swing.ColumnRowLayout
All Implemented Interfaces:
java.awt.LayoutManager, SortedLayout

public class ColumnRowLayout
extends java.lang.Object
implements SortedLayout

$Id: ColumnRowLayout.java,v 1.22 2004/10/20 17:49:44 schneider Exp $ This LayoutManager layouts the components in a column or a row without changing their sizes. This LayoutManager was written as an replacement for the GridLayout with one row or one column.

Version:
$Revision: 1.22 $
Author:
$Author: schneider $

Field Summary
protected  de.upb.tools.fca.FTreeMap alignments
          No comment provided by developer, please add a comment to improve documentation.
static int CENTER
          No comment provided by developer, please add a comment to improve documentation.
static int COLUMN
          No comment provided by developer, please add a comment to improve documentation.
protected  int gap
          No comment provided by developer, please add a comment to improve documentation.
static int LEFT
          No comment provided by developer, please add a comment to improve documentation.
protected  int mode
          No comment provided by developer, please add a comment to improve documentation.
static int RIGHT
          No comment provided by developer, please add a comment to improve documentation.
static int ROW
          No comment provided by developer, please add a comment to improve documentation.
 
Constructor Summary
ColumnRowLayout()
          Constructor for class ColumnRowLayout
ColumnRowLayout(int aGap, int aMode)
          You must specify the gap between the objects and how you would like the the Layouter do his work.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Access method for an one to n association.
 java.util.Comparator getComparator()
          Get the comparator attribute of the ColumnRowLayout object
 java.lang.String getDelimiter()
          Get the delimiter attribute of the ColumnRowLayout object
 void layoutContainer(java.awt.Container parent)
          This method moves the objects to their places and set the sizes they prefer.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          The minimumLayout Size is for this LayoutManager the same as the preferredLayoutSize.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          This method calculates the preferredSize of the Container.
 void removeLayoutComponent(java.awt.Component comp)
          No comment provided by developer, please add a comment to improve documentation.
 void setAlignment(int pos, int align)
          Sets the alignment attribute of the ColumnRowLayout object
 void setComparator(java.util.Comparator comp)
          Sets the comparator attribute of the ColumnRowLayout object
 void setDelimiter(java.lang.String delim)
          Sets the delimiter attribute of the ColumnRowLayout object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gap

protected int gap
No comment provided by developer, please add a comment to improve documentation.


mode

protected int mode
No comment provided by developer, please add a comment to improve documentation.


ROW

public static final int ROW
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

COLUMN

public static final int COLUMN
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

alignments

protected de.upb.tools.fca.FTreeMap alignments
No comment provided by developer, please add a comment to improve documentation.


LEFT

public static final int LEFT
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

CENTER

public static final int CENTER
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values
Constructor Detail

ColumnRowLayout

public ColumnRowLayout()
Constructor for class ColumnRowLayout


ColumnRowLayout

public ColumnRowLayout(int aGap,
                       int aMode)
You must specify the gap between the objects and how you would like the the Layouter do his work. The Layouter can layout the objects in a row or in a column.

Parameters:
aGap - No description provided
aMode - No description provided
Method Detail

setComparator

public void setComparator(java.util.Comparator comp)
Sets the comparator attribute of the ColumnRowLayout object

Specified by:
setComparator in interface SortedLayout
Parameters:
comp - The new comparator value

getComparator

public java.util.Comparator getComparator()
Get the comparator attribute of the ColumnRowLayout object

Specified by:
getComparator in interface SortedLayout
Returns:
The comparator value

setDelimiter

public void setDelimiter(java.lang.String delim)
Sets the delimiter attribute of the ColumnRowLayout object

Parameters:
delim - The new delimiter value

getDelimiter

public java.lang.String getDelimiter()
Get the delimiter attribute of the ColumnRowLayout object

Returns:
The delimiter value

setAlignment

public void setAlignment(int pos,
                         int align)
Sets the alignment attribute of the ColumnRowLayout object

Parameters:
pos - The new alignment value
align - The new alignment value

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Access method for an one to n association.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - The object added.
comp - The object added.

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - No description provided

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
This method calculates the preferredSize of the Container. Between the objects and around them is the gap.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - No description provided
Returns:
No description provided

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
The minimumLayout Size is for this LayoutManager the same as the preferredLayoutSize.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - No description provided
Returns:
No description provided

layoutContainer

public void layoutContainer(java.awt.Container parent)
This method moves the objects to their places and set the sizes they prefer.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
parent - No description provided