com.jstatcom.equation
Class EqLayout

java.lang.Object
  extended by java.awt.FlowLayout
      extended by com.jstatcom.equation.EqLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.io.Serializable

public final class EqLayout
extends java.awt.FlowLayout

Special layout to be used with EqPanel. It manges the visibility of scrollbars of a parent scrollpane, the adjustment of the equation components and the dimension of the underlying EqPanel.

Author:
Alexander Benkwitz, Markus Kraetzig
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.FlowLayout
CENTER, LEADING, LEFT, RIGHT, TRAILING
 
Constructor Summary
EqLayout()
          Constructor.
 
Method Summary
 void layoutContainer(java.awt.Container target)
          Manages the layout for the target container and its child components.
 java.awt.Dimension maximumLayoutSize(java.awt.Container target)
          Returns the maximum dimensions needed to layout the components contained in the specified target container.
 java.awt.Dimension minimumLayoutSize(java.awt.Container target)
          Returns the minimum dimensions needed to layout the components contained in the specified target container.
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
          Wrappes component childs if there is a parent component of class JScrollPane.
 
Methods inherited from class java.awt.FlowLayout
addLayoutComponent, getAlignment, getAlignOnBaseline, getHgap, getVgap, removeLayoutComponent, setAlignment, setAlignOnBaseline, setHgap, setVgap, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EqLayout

public EqLayout()
Constructor.

Method Detail

layoutContainer

public void layoutContainer(java.awt.Container target)
Manages the layout for the target container and its child components.

Specified by:
layoutContainer in interface java.awt.LayoutManager
Overrides:
layoutContainer in class java.awt.FlowLayout
Parameters:
target - the specified component being laid out.
See Also:
Container.doLayout()

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
Returns the maximum dimensions needed to layout the components contained in the specified target container.

Parameters:
target - the component which needs to be laid out
Returns:
the maximum dimensions to lay out the subcomponents of the specified container.

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container.

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Overrides:
minimumLayoutSize in class java.awt.FlowLayout
Parameters:
target - the component which needs to be laid out
Returns:
the minimum dimensions to lay out the subcomponents of the specified container.

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Wrappes component childs if there is a parent component of class JScrollPane.

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Overrides:
preferredLayoutSize in class java.awt.FlowLayout
Parameters:
target - the component which needs to be laid out
Returns:
the preferred dimensions to lay out the subcomponents of the specified container.