Class TestSugiyamaLayoutAlgorithm<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.AbstractHierarchicalMinCrossLayoutAlgorithm<V,E>
-
- org.jungrapht.visualization.layout.algorithms.SugiyamaLayoutAlgorithm<V,E>
-
- org.jungrapht.samples.sugiyama.test.algorithms.TestSugiyamaLayoutAlgorithm<V,E>
-
- Type Parameters:
V
-E
-
- All Implemented Interfaces:
Consumer<Function<V,Rectangle>>
,Layered<V,E>
,LayoutAlgorithm<V>
,AfterRunnable
,EdgeArticulationFunctionSupplier<E>
,ExecutorConsumer
,Threaded
,VertexBoundsFunctionConsumer<V>
public class TestSugiyamaLayoutAlgorithm<V,E> extends SugiyamaLayoutAlgorithm<V,E> implements LayoutAlgorithm<V>
Test only, as this class is hard-coded for a specific test graph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestSugiyamaLayoutAlgorithm.Builder<V,E,T extends TestSugiyamaLayoutAlgorithm<V,E> & EdgeAwareLayoutAlgorithm<V,E>,B extends TestSugiyamaLayoutAlgorithm.Builder<V,E,T,B>>
a Builder to create a configured instance-
Nested classes/interfaces inherited from interface org.jungrapht.visualization.layout.algorithms.LayoutAlgorithm
LayoutAlgorithm.NoOp<V>
-
Nested classes/interfaces inherited from interface org.jungrapht.visualization.layout.algorithms.util.Threaded
Threaded.NoOp
-
-
Field Summary
-
Fields inherited from class org.jungrapht.visualization.layout.algorithms.SugiyamaLayoutAlgorithm
transposeLimit
-
Fields inherited from class org.jungrapht.visualization.layout.algorithms.AbstractHierarchicalMinCrossLayoutAlgorithm
after, bounds, cancelled, completionCounter, edgePointMap, executor, expandLayout, layering, layoutModel, MAX_LEVEL_CROSS, maxLevelCross, maxLevelCrossFunction, MINCROSS_POST_STRAIGHTEN, MINCROSS_STRAIGHTEN_EDGES, MINCROSS_THREADED, postStraighten, roots, runnables, separateComponents, straightenEdges, threaded, transpose, TRANSPOSE_LIMIT, vertexBoundsFunction
-
-
Constructor Summary
Constructors Modifier Constructor Description TestSugiyamaLayoutAlgorithm()
protected
TestSugiyamaLayoutAlgorithm(TestSugiyamaLayoutAlgorithm.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <V,E>
TestSugiyamaLayoutAlgorithm.Builder<V,E,?,?>edgeAwareBuilder()
void
visit(LayoutModel<V> layoutModel)
visit the passed layoutModel and set its locations-
Methods inherited from class org.jungrapht.visualization.layout.algorithms.SugiyamaLayoutAlgorithm
builder, getRunnable
-
Methods inherited from class org.jungrapht.visualization.layout.algorithms.AbstractHierarchicalMinCrossLayoutAlgorithm
cancel, constrained, getEdgeArticulationFunction, getExecutor, isComplete, isThreaded, runAfter, setAfter, setExecutor, setLayering, setMaxLevelCrossFunction, setThreaded, setVertexBoundsFunction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.util.AfterRunnable
runAfter, setAfter
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.util.ExecutorConsumer
getExecutor, setExecutor
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.Layered
setLayering, setMaxLevelCrossFunction
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.LayoutAlgorithm
cancel, constrained
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.util.Threaded
cancel, isThreaded, setThreaded
-
Methods inherited from interface org.jungrapht.visualization.layout.algorithms.util.VertexBoundsFunctionConsumer
accept, setVertexBoundsFunction
-
-
-
-
Constructor Detail
-
TestSugiyamaLayoutAlgorithm
public TestSugiyamaLayoutAlgorithm()
-
TestSugiyamaLayoutAlgorithm
protected TestSugiyamaLayoutAlgorithm(TestSugiyamaLayoutAlgorithm.Builder builder)
-
-
Method Detail
-
edgeAwareBuilder
public static <V,E> TestSugiyamaLayoutAlgorithm.Builder<V,E,?,?> edgeAwareBuilder()
- Type Parameters:
V
- vertex typeE
- edge type- Returns:
- a Builder ready to configure
-
visit
public void visit(LayoutModel<V> layoutModel)
Description copied from interface:LayoutAlgorithm
visit the passed layoutModel and set its locations- Specified by:
visit
in interfaceLayoutAlgorithm<V>
- Overrides:
visit
in classAbstractHierarchicalMinCrossLayoutAlgorithm<V,E>
- Parameters:
layoutModel
- the mediator between the container for vertices (the Graph) and the mapping from Vertex to Point
-
-