|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.webgui.service.impl.utility.KielerInterface
public final class KielerInterface
An interface between our constrained graph representation and the KIELER graph model.
| Method Summary | |
|---|---|
static void |
applyLayout(Graph graph,
de.cau.cs.kieler.kiml.AbstractLayoutProvider layoutProvider)
Calls a layout procedure on the Graphs KIELER representation and updates
our graph representation. |
static de.cau.cs.kieler.core.kgraph.KEdge |
makeKielerEdge(Node source,
Node target,
Port sourcePort,
Port targetPort)
Constructs a directed KEdge between the KIELER representation of two nodes. |
static de.cau.cs.kieler.core.kgraph.KNode |
makeKielerGraph()
|
static de.cau.cs.kieler.core.kgraph.KNode |
makeKielerNode(Graph graph,
int width,
int height,
boolean nodeFamily)
Constructs a KNode and adds it to the Graphs parent node. |
static de.cau.cs.kieler.core.kgraph.KPort |
makeKielerPort(Graph graph,
Node node,
int x,
int y)
Constructs a KPort and adds it to a KNode representation of a Node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void applyLayout(Graph graph,
de.cau.cs.kieler.kiml.AbstractLayoutProvider layoutProvider)
throws GraphLayoutException
Graphs KIELER representation and updates
our graph representation.
graph - the Graph that is to be layoutedlayoutProvider - KIELER layout provider
* @throws GraphLayoutException
If something went wrong during the layouting.
GraphLayoutExceptionpublic static de.cau.cs.kieler.core.kgraph.KNode makeKielerGraph()
KNode that acts as a parent for all added nodes
public static de.cau.cs.kieler.core.kgraph.KNode makeKielerNode(Graph graph,
int width,
int height,
boolean nodeFamily)
KNode and adds it to the Graphs parent node.
graph - the Graph that contains the nodewidth - the width of the nodeheight - the height of the nodenodeFamily - if true, KPorts can be added to the node
KNode
public static de.cau.cs.kieler.core.kgraph.KPort makeKielerPort(Graph graph,
Node node,
int x,
int y)
KPort and adds it to a KNode representation of a Node.
graph - the Graph that contains the portnode - the Node to which the port is addedx - the x-coordinate of the port, relative to the left border of the nodey - the y-coordinate of the port, relative to the top border of the node
KPort
public static de.cau.cs.kieler.core.kgraph.KEdge makeKielerEdge(Node source,
Node target,
Port sourcePort,
Port targetPort)
KEdge between the KIELER representation of two nodes.
source - the source Node of the edgetarget - the target Node of the edgesourcePort - the Port of the source NodetargetPort - the Port of the target Node
KEdge
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||