org.jscience.swing
Class JGraphLayout

java.lang.Object
  extended by org.jscience.swing.JGraphLayout
All Implemented Interfaces:
java.awt.LayoutManager, java.awt.LayoutManager2

public final class JGraphLayout
extends java.lang.Object
implements java.awt.LayoutManager2

A graph layout arranges components in the style of a graph. Available regions are: TitleGraphX-axisY-axis


Constructor Summary
JGraphLayout()
          Creates a new JGraphLayout object.
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraint)
          DOCUMENT ME!
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
          DOCUMENT ME!
 float getLayoutAlignmentX(java.awt.Container parent)
          DOCUMENT ME!
 float getLayoutAlignmentY(java.awt.Container parent)
          DOCUMENT ME!
 void invalidateLayout(java.awt.Container parent)
          DOCUMENT ME!
 void layoutContainer(java.awt.Container parent)
          DOCUMENT ME!
 java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
          DOCUMENT ME!
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
          DOCUMENT ME!
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
          DOCUMENT ME!
 void removeLayoutComponent(java.awt.Component comp)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JGraphLayout

public JGraphLayout()
Creates a new JGraphLayout object.

Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String name,
                               java.awt.Component comp)
DOCUMENT ME!

Specified by:
addLayoutComponent in interface java.awt.LayoutManager
Parameters:
name - DOCUMENT ME!
comp - DOCUMENT ME!

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraint)
DOCUMENT ME!

Specified by:
addLayoutComponent in interface java.awt.LayoutManager2
Parameters:
comp - DOCUMENT ME!
constraint - DOCUMENT ME!

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
DOCUMENT ME!

Specified by:
removeLayoutComponent in interface java.awt.LayoutManager
Parameters:
comp - DOCUMENT ME!

layoutContainer

public void layoutContainer(java.awt.Container parent)
DOCUMENT ME!

Specified by:
layoutContainer in interface java.awt.LayoutManager
Parameters:
parent - DOCUMENT ME!

invalidateLayout

public void invalidateLayout(java.awt.Container parent)
DOCUMENT ME!

Specified by:
invalidateLayout in interface java.awt.LayoutManager2
Parameters:
parent - DOCUMENT ME!

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container parent)
DOCUMENT ME!

Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2
Parameters:
parent - DOCUMENT ME!
Returns:
DOCUMENT ME!

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container parent)
DOCUMENT ME!

Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2
Parameters:
parent - DOCUMENT ME!
Returns:
DOCUMENT ME!

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
DOCUMENT ME!

Specified by:
minimumLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - DOCUMENT ME!
Returns:
DOCUMENT ME!

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
DOCUMENT ME!

Specified by:
preferredLayoutSize in interface java.awt.LayoutManager
Parameters:
parent - DOCUMENT ME!
Returns:
DOCUMENT ME!

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
DOCUMENT ME!

Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2
Parameters:
parent - DOCUMENT ME!
Returns:
DOCUMENT ME!