public class JGraphCompoundLayout extends java.lang.Object implements JGraphLayout
JGraphLayout.Stoppable
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
layouts
Holds all layouts.
|
VERSION
Constructor and Description |
---|
JGraphCompoundLayout()
Default constructor
|
JGraphCompoundLayout(JGraphLayout[] layouts)
Constructs a compound layout consisting of the specified first- and
secondStep.
|
Modifier and Type | Method and Description |
---|---|
void |
add(JGraphLayout layout)
Adds a layout to
layouts . |
java.util.List |
getLayouts()
Returns the list of layouts.
|
void |
remove(JGraphLayout layout)
Removes a layout from
layouts |
void |
run(JGraphFacade graph)
Runs all layouts in the order they were inserted.
|
public JGraphCompoundLayout()
public JGraphCompoundLayout(JGraphLayout[] layouts)
public void run(JGraphFacade graph)
run
in interface JGraphLayout
graph
- The layout facade that the layout will use as inputpublic void add(JGraphLayout layout)
layouts
.layout
- The layout to add.public void remove(JGraphLayout layout)
layouts
layout
- The layout to remove.public java.util.List getLayouts()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.