sound.chat
Class StripeLayout

java.lang.Object
  extended by sound.chat.StripeLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class StripeLayout
extends java.lang.Object
implements java.awt.LayoutManager

A Layout-manager that displays the added components in lines. The width of this layout is determined by the widest component that was added. The height of each stripe is the preferred height of the respective component.


Constructor Summary
StripeLayout()
           
StripeLayout(int edge)
          Constructs a StripeLayout with left, right, top, and bottom edge of edge
StripeLayout(int leftEdge, int topEdge, int rightEdge, int bottomEdge)
          Constructs a StripeLayout with the given edges.
StripeLayout(int leftEdge, int topEdge, int rightEdge, int bottomEdge, int spacer)
          Constructs a StripeLayout with the given edges and spacer
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 void layoutContainer(java.awt.Container target)
          application du layout sur le container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          retourne les dimensions minimales pour le layout.
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          retourne les dimensions preferees pour le layout.
 void removeLayoutComponent(java.awt.Component comp)
          enleve le layout.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StripeLayout

public StripeLayout()

StripeLayout

public StripeLayout(int edge)
Constructs a StripeLayout with left, right, top, and bottom edge of edge


StripeLayout

public StripeLayout(int leftEdge,
                    int topEdge,
                    int rightEdge,
                    int bottomEdge)
Constructs a StripeLayout with the given edges.


StripeLayout

public StripeLayout(int leftEdge,
                    int topEdge,
                    int rightEdge,
                    int bottomEdge,
                    int spacer)
Constructs a StripeLayout with the given edges and spacer

Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
enleve le layout.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
Component - comp) {
See Also:

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
retourne les dimensions preferees pour le layout. compte tenu de la taille des composants Les places dans le container cible

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
target - le composant a appliquer sur le layout

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
retourne les dimensions minimales pour le layout. compte tenu de la taille des composants. Les places dans le container cible

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
target - le composant a appliquer sur le layout * @see #preferredLayoutSize

layoutContainer

public void layoutContainer(java.awt.Container target)
application du layout sur le container.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
target - le composant a appliquer sur le layout