|
||||||||||
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 Node
s and Edge
s 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 Edge s. |
void |
addNode(Node node)
Adds a Node to the list of Node s. |
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 Node s. |
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)
Node
s and Edge
s, and
a parent KNode
for all added nodes.
scale
- the scaling factor for portsMethod Detail |
---|
public void addNode(Node node)
Node
to the list of Node
s.
node
- the added nodepublic void addEdge(Edge edge)
Edge
to the list of Edge
s.
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 Node
s.
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 |