WISA.wisa3D.gui
Class TaskBarLayout

java.lang.Object
  |
  +--WISA.wisa3D.gui.TaskBarLayout
All Implemented Interfaces:
java.awt.LayoutManager

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

Überschrift: Wisa3D Beschreibung: The TaskBarLayout arranges its components in a horizontal way similar to a java.awt.FlowLayout. If the layouts width is bigger than the parent components width the widths of the inner components is set to a lower value so that still all components can be displayed in a horizontal order. Copyright: Copyright (c) 1999 Organisation: IAI-FZK


Constructor Summary
TaskBarLayout()
          Construct a TaskBarLayout with a default hgap of 5 and a default prefWidth of 100.
TaskBarLayout(int hgap, int prefWidth)
          Construct a TaskBarLayout with the specified hgap and prefWidth.
 
Method Summary
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          Not used by this layout.
 void layoutContainer(java.awt.Container parent)
          Lays out the specified container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          Return the preferred size of this layout.
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          Return the preferred size of this layout.
 void removeLayoutComponent(java.awt.Component comp)
          Not used by this layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskBarLayout

public TaskBarLayout()
Construct a TaskBarLayout with a default hgap of 5 and a default prefWidth of 100.


TaskBarLayout

public TaskBarLayout(int hgap,
                     int prefWidth)
Construct a TaskBarLayout with the specified hgap and prefWidth.

Parameters:
hgap - The horizontal gap between two components.
prefWidth - The preferred width of the components.
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
Not used by this layout.

Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Not used by this layout.

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Return the preferred size of this layout.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - The parent for this layout.
Returns:
The preferred size.

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Return the preferred size of this layout.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - The parent for this layout.
Returns:
The preferred size.

layoutContainer

public void layoutContainer(java.awt.Container parent)
Lays out the specified container.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
parent - The container to be laid out.