|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.klay.layered.Util
public final class Util
Contains utility methods used throughout KLay Layered.
Method Summary | |
---|---|
static void |
centerPoint(KVector point,
KVector boundary,
PortSide side)
Center the given point on one side of a boundary. |
static LinkedList<LNode> |
getChildren(LNode node)
Get the given node's children list. |
static String |
getDebugOutputFileBaseName(LayeredGraph graph)
Returns the beginning of the file name used for debug output graphs while layouting the given layered graph. |
static String |
getDebugOutputPath()
Returns the path for debug output graphs. |
static LGraphElement |
getParent(LNode child)
Finds and returns the given node's parent's representative in the LayeredGraph. |
static LNode |
getRelatedCompoundNode(LNode node,
LayeredGraph layeredGraph)
Get the compound node an LNode belongs to. |
static boolean |
isDescendant(LNode child,
LNode parent)
Determines whether the given child node is a descendant of the parent node. |
static void |
propagatePair(LinkedList<LNode> sourceTargetList,
HashMap<KGraphElement,LGraphElement> elemMap)
Finds for a pair of LNodes the pair of ancestors with a common parent that is highest in depth in the inclusion tree. |
static LPort |
provideCollectorPort(LNode node,
PortType type,
PortSide side)
Return a collector port of given type, creating it if necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void centerPoint(KVector point, KVector boundary, PortSide side)
point
- a point to changeboundary
- the boundary to use for centeringside
- the side of the boundarypublic static LPort provideCollectorPort(LNode node, PortType type, PortSide side)
node
- a nodetype
- if INPUT
, an input collector port is returned; if OUTPUT
, an
output collector port is returnedside
- the side to set for a newly created port
public static String getDebugOutputPath()
public static String getDebugOutputFileBaseName(LayeredGraph graph)
"143293-"
.
graph
- the graph to return the base debug file name for.
public static boolean isDescendant(LNode child, LNode parent)
child
- a child nodeparent
- a parent node
child
is a direct or indirect child of parent
public static LGraphElement getParent(LNode child)
child
- the node for which the parent representative is to be found.
public static LinkedList<LNode> getChildren(LNode node)
node
- the LNode, for which the children are to be returned
public static LNode getRelatedCompoundNode(LNode node, LayeredGraph layeredGraph)
node
- The LNode for which the corresponding compound node is to be returned.layeredGraph
- The layered Graph, which is to be laid out.
public static void propagatePair(LinkedList<LNode> sourceTargetList, HashMap<KGraphElement,LGraphElement> elemMap)
sourceTargetList
- The pair of nodes is handed over as a List. The pair of ancestors will be stored
in the same list.elemMap
- The element map that maps the original KGraphElements to the LGraphElements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |