Sharkysoft home

lava.gui
Class ListenableLayoutManager2

java.lang.Object
  |
  +--lava.gui.ListenableLayoutManager
        |
        +--lava.gui.ListenableLayoutManager2
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2

public class ListenableLayoutManager2
extends ListenableLayoutManager
implements java.awt.LayoutManager2

Adds LayoutListener support to any LayoutManager2.

Details: ListenableLayoutManager2 is similar to ProxyLayoutManager, except that it encapsulates instances of LayoutManager2. For more details, ProxyLayoutManager.

Since:
1999.06.09

Fields inherited from class lava.gui.ListenableLayoutManager
lm
 
Constructor Summary
ListenableLayoutManager2(java.awt.LayoutManager2 lm2)
          Specifies LayoutManager2.
 
Method Summary
 void addLayoutComponent(java.awt.Component c, java.lang.Object o)
          Forwards call to lm.
 float getLayoutAlignmentX(java.awt.Container c)
          Forwards call to lm.
 float getLayoutAlignmentY(java.awt.Container c)
          Forwards call to lm.
 void invalidateLayout(java.awt.Container c)
          Forwards call to lm.
 java.awt.Dimension maximumLayoutSize(java.awt.Container c)
          Forwards call to lm.
 
Methods inherited from class lava.gui.ListenableLayoutManager
addLayoutComponent, addLayoutListener, layoutContainer, minimumLayoutSize, notifyListeners, preferredLayoutSize, removeLayoutComponent, removeLayoutListener
 
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
addLayoutComponent, layoutContainer, minimumLayoutSize, preferredLayoutSize, removeLayoutComponent
 

Constructor Detail

ListenableLayoutManager2

public ListenableLayoutManager2(java.awt.LayoutManager2 lm2)
Specifies LayoutManager2.

Details: This constructor prepares me to act as a proxy for the given LayoutManager2.

Parameters:
lm - the LayoutManager
Method Detail

invalidateLayout

public void invalidateLayout(java.awt.Container c)
Forwards call to lm.

Details: I forward invalidateLayout calls to lm.

Specified by:
invalidateLayout in interface java.awt.LayoutManager2
Parameters:
c - a forwarded parameter

addLayoutComponent

public void addLayoutComponent(java.awt.Component c,
                               java.lang.Object o)
Forwards call to lm.

Details: I forward addLayoutComponent calls to lm.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
Parameters:
c - a forwarded parameter
o - a forwarded parameter

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container c)
Forwards call to lm.

Details: I forward maximumLayoutSize calls to lm and return the result.

Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2
Parameters:
c - a forwarded parameter
Returns:
the result

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container c)
Forwards call to lm.

Details: I forward getLayoutAlignmentX calls to lm and return the result.

Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2
Parameters:
c - a forwarded parameter
Returns:
the result

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container c)
Forwards call to lm.

Details: I forward getLayoutAlignmentY calls to lm and return the result.

Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2
Parameters:
c - a forwarded parameter
Returns:
the result

Sharkysoft home