de.uni_paderborn.fujaba.fsa.swing
Class JDiagramRootPane.DefaultLayout

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.swing.JDiagramRootPane.DefaultLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2
Enclosing class:
JDiagramRootPane

protected class JDiagramRootPane.DefaultLayout
extends java.lang.Object
implements java.awt.LayoutManager2

A custom layout manager that is responsible for the layout of contentPane and glassPane.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

Version:
$Revision: 1.17 $
Author:
$Author: schneider $

Constructor Summary
protected JDiagramRootPane.DefaultLayout()
           
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
          Access method for an one to n association.
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Access method for an one to n association.
 float getLayoutAlignmentX(java.awt.Container target)
          Get the layoutAlignmentX attribute of the DefaultLayout object
 float getLayoutAlignmentY(java.awt.Container target)
          Get the layoutAlignmentY attribute of the DefaultLayout object
 void invalidateLayout(java.awt.Container target)
          No comment provided by developer, please add a comment to improve documentation.
 void layoutContainer(java.awt.Container parent)
          Instructs the layout manager to perform the layout for the specified container.
 java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
          Returns the maximum amount of space the layout can use.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Returns the minimum amount of space the layout needs.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Returns the amount of space the layout would like to have.
 void removeLayoutComponent(java.awt.Component comp)
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDiagramRootPane.DefaultLayout

protected JDiagramRootPane.DefaultLayout()
Method Detail

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Returns the amount of space the layout would like to have.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - the Container for which this layout manager is being used
Returns:
a Dimension object containing the layout's preferred size

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Returns the minimum amount of space the layout needs.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - the Container for which this layout manager is being used
Returns:
a Dimension object containing the layout's minimum size

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
Returns the maximum amount of space the layout can use.

Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2
Parameters:
parent - No description provided
Returns:
a Dimension object containing the layout's maximum size

layoutContainer

public void layoutContainer(java.awt.Container parent)
Instructs the layout manager to perform the layout for the specified container.

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

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

addLayoutComponent

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

Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
Parameters:
comp - The object added.
constraints - The object added.

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container target)
Get the layoutAlignmentX attribute of the DefaultLayout object

Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2
Parameters:
target - No description provided
Returns:
The layoutAlignmentX value

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container target)
Get the layoutAlignmentY attribute of the DefaultLayout object

Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2
Parameters:
target - No description provided
Returns:
The layoutAlignmentY value

invalidateLayout

public void invalidateLayout(java.awt.Container target)
No comment provided by developer, please add a comment to improve documentation.

Specified by:
invalidateLayout in interface java.awt.LayoutManager2
Parameters:
target - No description provided