JSci.swing
Class JGraphLayout

java.lang.Object
  extended by JSci.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: Title, Graph (default), X-axis, Y-axis.


Field Summary
static java.lang.String GRAPH
           
static java.lang.String TITLE
           
static java.lang.String X_AXIS
           
static java.lang.String Y_AXIS
           
 
Constructor Summary
JGraphLayout()
           
 
Method Summary
 void addLayoutComponent(java.awt.Component comp, java.lang.Object constraint)
           
 void addLayoutComponent(java.lang.String name, java.awt.Component comp)
           
 float getLayoutAlignmentX(java.awt.Container parent)
           
 float getLayoutAlignmentY(java.awt.Container parent)
           
 void invalidateLayout(java.awt.Container parent)
           
 void layoutContainer(java.awt.Container parent)
           
 java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
           
 void removeLayoutComponent(java.awt.Component comp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

public static final java.lang.String TITLE
See Also:
Constant Field Values

GRAPH

public static final java.lang.String GRAPH
See Also:
Constant Field Values

X_AXIS

public static final java.lang.String X_AXIS
See Also:
Constant Field Values

Y_AXIS

public static final java.lang.String Y_AXIS
See Also:
Constant Field Values
Constructor Detail

JGraphLayout

public JGraphLayout()
Method Detail

addLayoutComponent

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

addLayoutComponent

public void addLayoutComponent(java.awt.Component comp,
                               java.lang.Object constraint)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager2

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component comp)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container parent)
Specified by:
layoutContainer in interface java.awt.LayoutManager

invalidateLayout

public void invalidateLayout(java.awt.Container parent)
Specified by:
invalidateLayout in interface java.awt.LayoutManager2

getLayoutAlignmentX

public float getLayoutAlignmentX(java.awt.Container parent)
Specified by:
getLayoutAlignmentX in interface java.awt.LayoutManager2

getLayoutAlignmentY

public float getLayoutAlignmentY(java.awt.Container parent)
Specified by:
getLayoutAlignmentY in interface java.awt.LayoutManager2

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager

maximumLayoutSize

public java.awt.Dimension maximumLayoutSize(java.awt.Container parent)
Specified by:
maximumLayoutSize in interface java.awt.LayoutManager2