|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.webgui.service.impl.utility.model.Graph
public class Graph
This class represents the whole graph that needs to be layouted.
Contains lists of all Nodes and Edges as well as a general scaling
factor that determines the size and distance between ports.
| Field Summary | |
|---|---|
static String |
EDGE_ROUTING
|
static boolean |
LAYOUT_HIERARCHY
|
static String |
PORT_CONSTRAINTS
|
| Constructor Summary | |
|---|---|
Graph(int scale)
Class constructor. |
|
| Method Summary | |
|---|---|
void |
addEdge(Edge edge)
Adds an Edge to the list of Edges. |
void |
addNode(Node node)
Adds a Node to the list of Nodes. |
static String |
getEdgeRouting()
|
List<Edge> |
getEdges()
|
de.cau.cs.kieler.core.kgraph.KNode |
getKielerGraph()
|
Node |
getNode(String id)
Looks for a Node with a specific id in the list of Nodes. |
List<Node> |
getNodes()
|
static String |
getPortConstraints()
|
int |
getPortHeight()
|
static boolean |
isLayoutHierarchy()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String EDGE_ROUTING
public static final boolean LAYOUT_HIERARCHY
public static final String PORT_CONSTRAINTS
| Constructor Detail |
|---|
public Graph(int scale)
Nodes and Edges, and
a parent KNode for all added nodes.
scale - the scaling factor for ports| Method Detail |
|---|
public void addNode(Node node)
Node to the list of Nodes.
node - the added nodepublic void addEdge(Edge edge)
Edge to the list of Edges.
edge - the added edgepublic static String getEdgeRouting()
public static boolean isLayoutHierarchy()
public static String getPortConstraints()
public int getPortHeight()
public de.cau.cs.kieler.core.kgraph.KNode getKielerGraph()
public List<Node> getNodes()
public List<Edge> getEdges()
public Node getNode(String id)
Node with a specific id in the list of Nodes.
id - the id string of a node
Node if it exists, or null if it does not exist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||