com.altair.hwm.beans.utils
Class HWMFlowLayout

java.lang.Object
  extended by java.awt.FlowLayout
      extended by com.altair.hwm.beans.utils.HWMFlowLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public class HWMFlowLayout
extends java.awt.FlowLayout

Title: HWMFlowLayout

Description: This class extends the FlowLayout to gte the preferred size for the component. This is mostly used for the toolbar.

Company: Altair Engineering, Inc.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.FlowLayout
CENTER, LEADING, LEFT, RIGHT, TRAILING
 
Constructor Summary
HWMFlowLayout()
          Constructor
HWMFlowLayout(int nAlign)
          Constructor
 
Method Summary
 void layoutContainer(java.awt.Container containerTarget)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container containerTarget)
          Returns the preferred size for the container
 
Methods inherited from class java.awt.FlowLayout
addLayoutComponent, getAlignment, getHgap, getVgap, minimumLayoutSize, removeLayoutComponent, setAlignment, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HWMFlowLayout

public HWMFlowLayout()
Constructor


HWMFlowLayout

public HWMFlowLayout(int nAlign)
Constructor

Parameters:
nAlign - The way components should be aligned
Method Detail

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container containerTarget)
Returns the preferred size for the container

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.FlowLayout
Parameters:
containerTarget - The target container whose preferred size should be calculated and returned.

layoutContainer

public void layoutContainer(java.awt.Container containerTarget)
Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.FlowLayout