de.uni_paderborn.fujaba.fsa.swing
Class DecoratorLayout

java.lang.Object
  extended byde.uni_paderborn.fujaba.fsa.swing.NoLayout
      extended byde.uni_paderborn.fujaba.fsa.swing.DecoratorLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2

public class DecoratorLayout
extends NoLayout
implements java.awt.LayoutManager2

Layout that gets the preferred position of the component from registerred Constraints-Objects. Everything else is equal to NoLayout UMLClass: 'DecoratorLayout'

Version:
$Revision: 1.15 $
Author:
$Author: lowende $

Nested Class Summary
static interface DecoratorLayout.Constraints
          No comment provided by developer, please add a comment to improve documentation.
 
Field Summary
private  java.util.HashMap layoutComponents
          UMLAttribute: 'layoutComponents : HashSet = null'
 
Fields inherited from class de.uni_paderborn.fujaba.fsa.swing.NoLayout
 
Constructor Summary
DecoratorLayout()
          Constructor for class DecoratorLayout
DecoratorLayout(boolean repos)
          Constructor for class DecoratorLayout
DecoratorLayout(boolean calc, boolean repos)
          Constructor for class DecoratorLayout
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
          UMLMethod: '+ addLayoutComponent (comp : Component;constraints : Object) : Void'
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Access method for an one to n association.
 void addToLayoutComponents(java.awt.Component value, DecoratorLayout.Constraints constraints)
          Access method for an one to n association.
 void addToLayoutComponents(java.util.Map.Entry entry)
          Access method for an one to n association.
 java.util.Iterator constraintsOfLayoutComponents()
          No comment provided by developer, please add a comment to improve documentation.
 java.util.Iterator entriesOfLayoutComponents()
          No comment provided by developer, please add a comment to improve documentation.
 DecoratorLayout.Constraints getConstraintsFromLayoutComponents(java.awt.Component comp)
          Get the constraintsFromLayoutComponents attribute of the DecoratorLayout object
 float getLayoutAlignmentX(java.awt.Container target)
          UMLMethod: '+ getLayoutAlignmentX (target : Container) : Float'
 float getLayoutAlignmentY(java.awt.Container target)
          UMLMethod: '+ getLayoutAlignmentY (target : Container) : Float'
 boolean hasInLayoutComponents(java.awt.Component value)
          No comment provided by developer, please add a comment to improve documentation.
 void invalidateLayout(java.awt.Container target)
          UMLMethod: '+ invalidateLayout (target : Container) : Void'
 java.util.Iterator iteratorOfLayoutComponents()
          No comment provided by developer, please add a comment to improve documentation.
 void layoutContainer(java.awt.Container parent)
          UMLMethod: '+ layoutContainer (parent : Container) : Void'
 java.awt.Dimension maximumLayoutSize(java.awt.Container target)
          UMLMethod: '+ maximumLayoutSize (target : Container) : Dimension'
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          UMLMethod: '+ minimumLayoutSize (parent : Container) : Dimension'
 java.awt.Rectangle preferredLayoutBounds(java.awt.Container parent)
          UMLMethod: '+ preferredLayoutBounds (parent : Container) : Rectangle'
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          UMLMethod: '+ preferredLayoutSize (parent : Container) : Dimension'
 void removeAllFromLayoutComponents()
          No comment provided by developer, please add a comment to improve documentation.
 void removeFromLayoutComponents(java.awt.Component value)
          No comment provided by developer, please add a comment to improve documentation.
 void removeLayoutComponent(java.awt.Component comp)
          UMLMethod: '+ removeLayoutComponent (comp : Component) : Void'
 int sizeOfLayoutComponents()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.NoLayout
isCalcSelfRepositioning, isSelfRepositioning, setCalcSelfRepositioning, setSelfRepositioning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layoutComponents

private java.util.HashMap layoutComponents
UMLAttribute: 'layoutComponents : HashSet = null'

Constructor Detail

DecoratorLayout

public DecoratorLayout()
Constructor for class DecoratorLayout


DecoratorLayout

public DecoratorLayout(boolean repos)
Constructor for class DecoratorLayout

Parameters:
repos - No description provided

DecoratorLayout

public DecoratorLayout(boolean calc,
                       boolean repos)
Constructor for class DecoratorLayout

Parameters:
calc - No description provided
repos - No description provided
Method Detail

hasInLayoutComponents

public boolean hasInLayoutComponents(java.awt.Component value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

iteratorOfLayoutComponents

public java.util.Iterator iteratorOfLayoutComponents()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

constraintsOfLayoutComponents

public java.util.Iterator constraintsOfLayoutComponents()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

entriesOfLayoutComponents

public java.util.Iterator entriesOfLayoutComponents()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

sizeOfLayoutComponents

public int sizeOfLayoutComponents()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

getConstraintsFromLayoutComponents

public DecoratorLayout.Constraints getConstraintsFromLayoutComponents(java.awt.Component comp)
Get the constraintsFromLayoutComponents attribute of the DecoratorLayout object

Parameters:
comp - No description provided
Returns:
The constraintsFromLayoutComponents value

addToLayoutComponents

public void addToLayoutComponents(java.awt.Component value,
                                  DecoratorLayout.Constraints constraints)
Access method for an one to n association.

Parameters:
value - The object added.
constraints - The object added.

addToLayoutComponents

public void addToLayoutComponents(java.util.Map.Entry entry)
Access method for an one to n association.

Parameters:
entry - The object added.

removeFromLayoutComponents

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

Parameters:
value - No description provided

removeAllFromLayoutComponents

public void removeAllFromLayoutComponents()
No comment provided by developer, please add a comment to improve documentation.


addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object).

Description copied from class: NoLayout
Access method for an one to n association.

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

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraints)
UMLMethod: '+ addLayoutComponent (comp : Component;constraints : Object) : Void'

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

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
UMLMethod: '+ removeLayoutComponent (comp : Component) : Void'

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

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
UMLMethod: '+ preferredLayoutSize (parent : Container) : Dimension'

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

preferredLayoutBounds

public java.awt.Rectangle preferredLayoutBounds(java.awt.Container parent)
UMLMethod: '+ preferredLayoutBounds (parent : Container) : Rectangle'

Overrides:
preferredLayoutBounds in class NoLayout
Parameters:
parent - No description provided
Returns:
No description provided

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
UMLMethod: '+ minimumLayoutSize (parent : Container) : Dimension'

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

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
UMLMethod: '+ maximumLayoutSize (target : Container) : Dimension'

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

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container target)
UMLMethod: '+ getLayoutAlignmentX (target : Container) : Float'

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)
UMLMethod: '+ getLayoutAlignmentY (target : Container) : Float'

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

layoutContainer

public void layoutContainer(java.awt.Container parent)
UMLMethod: '+ layoutContainer (parent : Container) : Void'

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

invalidateLayout

public void invalidateLayout(java.awt.Container target)
UMLMethod: '+ invalidateLayout (target : Container) : Void'

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