|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yworks.yfiles.server.graphml.support.DotnetHierarchyGraphElementFactory
Dotnet-compatible graph element factory that can handle grouping.
| Constructor Summary | |
DotnetHierarchyGraphElementFactory(Graph graph)
Creates a new factory using a given graph instance to store the data. |
|
| Method Summary | |
Edge |
createEdge(GraphMLParseContext context,
Node sourceNode,
Port sourcePort,
Node targetNode,
Port targetPort)
Creates an edge for the given context and the provided source and target nodes or ports. |
Node |
createNode(GraphMLParseContext context)
Creates a node for the given context and set grouping information if the node is found to be the child of a group node. |
Port |
createPort(GraphMLParseContext context,
Node owner)
Creates a port object that is owned by owner. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DotnetHierarchyGraphElementFactory(Graph graph)
graph - the data of the first graph in the input is stored here.| Method Detail |
public Edge createEdge(GraphMLParseContext context,
Node sourceNode,
Port sourcePort,
Node targetNode,
Port targetPort)
createEdge in interface GraphElementFactorycontext - The context from which the graph, the CreationProperties, and the GraphMLParseContext.getObjectStack()
can be queried.sourceNode - The source node for the edge.sourcePort - The source port for the edge, if specified, otherwise null.targetNode - The target node for the edge.targetPort - The target port for the edge, if specified, otherwise null.
public Node createNode(GraphMLParseContext context)
createNode in interface GraphElementFactorycontext - The context from which the graph, the CreationProperties, and the GraphMLParseContext.getObjectStack()
can be queried.
public Port createPort(GraphMLParseContext context,
Node owner)
owner.
createPort in interface GraphElementFactorycontext - The parse context.owner - The owner of the port object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||