JSci.swing
Class JGraphLayout
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JGraphLayout
public JGraphLayout()
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