yext.graphml.graph2D
Class YHierarchyGraphElementFactory
java.lang.Object
yext.graphml.reader.YGraphElementFactory
yext.graphml.graph2D.YHierarchyGraphElementFactory
- All Implemented Interfaces:
- AttributeConstants, AttributeFactory, GraphElementFactory
- public class YHierarchyGraphElementFactory
- extends YGraphElementFactory
Extension of YGraphElementFactory that can handle nested graphs.
|
Method Summary |
Object |
createEdge(GraphMLParseContext context,
String id,
Object source,
Object target,
Object sourceport,
Object targetport,
boolean directed)
This method creates an edge on the graph, between nodes source and target.
|
Object |
createGraph(GraphMLParseContext context,
String id,
int edgedefault)
Creates the graph, should set up data with attributes. |
Object |
createNode(GraphMLParseContext context,
String id)
Creates a node on the passed graph, could be set up with attributes
passed by. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hierarchyManager
protected HierarchyManager hierarchyManager
YHierarchyGraphElementFactory
public YHierarchyGraphElementFactory(Graph graph)
createGraph
public Object createGraph(GraphMLParseContext context,
String id,
int edgedefault)
- Description copied from class:
YGraphElementFactory
- Creates the graph, should set up data with attributes.
- Specified by:
createGraph in interface GraphElementFactory- Overrides:
createGraph in class YGraphElementFactory
- Returns:
- java.lang.Object
createNode
public Object createNode(GraphMLParseContext context,
String id)
- Description copied from class:
YGraphElementFactory
- Creates a node on the passed graph, could be set up with attributes
passed by.
- Specified by:
createNode in interface GraphElementFactory- Overrides:
createNode in class YGraphElementFactory
createEdge
public Object createEdge(GraphMLParseContext context,
String id,
Object source,
Object target,
Object sourceport,
Object targetport,
boolean directed)
- Description copied from class:
YGraphElementFactory
- This method creates an edge on the graph, between nodes source and target.
Moreover the attributes are passed with the creation-request, so the
application could set up all data, gaining from this parameter.
- Specified by:
createEdge in interface GraphElementFactory- Overrides:
createEdge in class YGraphElementFactory
Copyright ©2000-2008, yWorks GmbH. All rights reserved.