|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.PortAssignment
public class PortAssignment
This class assigns port coordinates to the edges of a graph.
Constructor Summary | |
---|---|
PortAssignment()
Creates a new PortAssignment instance. |
Method Summary | |
---|---|
static void |
assignPorts(LayoutGraph graph,
DataProvider dummyMap,
java.util.Comparator inComp,
java.util.Comparator outComp)
Assigns port coordinates to the edges. |
static void |
assignPorts(LayoutGraph graph,
NodeList[] layerLists,
DataProvider dummyMap)
Assigns port coordinates to the edges of a graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PortAssignment()
PortAssignment
instance.
Method Detail |
---|
public static void assignPorts(LayoutGraph graph, NodeList[] layerLists, DataProvider dummyMap)
It is assumed that all incoming edges of a node connect at its top side and all outgoing edges leave at its bottom side.
Port assignment will be such that the ports will be spread evenly at top and bottom sides of the nodes. Ports will be assigned such that no unnecessary edge crossings will be introduced.
graph
- the input graph whose edges need port assignmentlayerLists
- an array of NodeList
s containing nodes that belong to the same layerdummyMap
- the DataProvider
that returns an object (the original edge) for each dummy node or
null
for real nodespublic static void assignPorts(LayoutGraph graph, DataProvider dummyMap, java.util.Comparator inComp, java.util.Comparator outComp)
It is assumed that all incoming edges of a node connect at its top side and all outgoing edges leave at its bottom side.
Port assignment will be such that the ports will be spread evenly at top and bottom sides of the nodes.
Ports will be assigned according to the given Comparator
s.
graph
- the input graph whose edges need port assignmentdummyMap
- the DataProvider
that returns an object (the original edge) for each dummy node or
null
for real nodesinComp
- a Comparator
defining an ordering for the incoming edgesoutComp
- a Comparator
defining an ordering for the outgoing edges
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |