yext.graphml.graph2D
Class YHierarchyGraphElementFactory

java.lang.Object
  extended byyext.graphml.reader.YGraphElementFactory
      extended byyext.graphml.graph2D.YHierarchyGraphElementFactory
All Implemented Interfaces:
AttributeConstants, AttributeFactory, GraphElementFactory

public class YHierarchyGraphElementFactory
extends YGraphElementFactory

Extension of YGraphElementFactory that can handle nested graphs.


Nested Class Summary
 
Nested classes inherited from class yext.graphml.reader.YGraphElementFactory
YGraphElementFactory.AttributeData
 
Field Summary
protected  HierarchyManager hierarchyManager
           
 
Fields inherited from class yext.graphml.reader.YGraphElementFactory
attributeList, attributeMap, createdGraphList, graphImpl, graphList
 
Fields inherited from interface org.graphdrawing.graphml.reader.GraphElementFactory
EDGEDEFAULT_DIRECTED, EDGEDEFAULT_UNDIRECTED, HYPEREDGE_TYPE_INT, HYPEREDGE_TYPE_OUT, HYPEREDGE_TYPE_UNDIR
 
Fields inherited from interface org.graphdrawing.graphml.attr.AttributeConstants
TYPE_BOOLEAN, TYPE_COMPLEX, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_STRING
 
Constructor Summary
YHierarchyGraphElementFactory(Graph graph)
           
 
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 yext.graphml.reader.YGraphElementFactory
createAttribute, createEndPoint, createGraphML, createHyperEdge, createPort, defineAttribute, getGraphList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hierarchyManager

protected HierarchyManager hierarchyManager
Constructor Detail

YHierarchyGraphElementFactory

public YHierarchyGraphElementFactory(Graph graph)
Method Detail

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.