yext.graphml.graph2D
Class YHierarchyGraphElementProvider

java.lang.Object
  extended byyext.graphml.writer.YGraphElementProvider
      extended byyext.graphml.graph2D.YHierarchyGraphElementProvider
All Implemented Interfaces:
GraphElementProvider

public class YHierarchyGraphElementProvider
extends YGraphElementProvider

Extension of YGraphElementProvider that can handle nested graphs.


Field Summary
protected  HierarchyManager hierarchyManager
           
 
Fields inherited from class yext.graphml.writer.YGraphElementProvider
defaultDirected, directionDP, graph, nullIterator
 
Constructor Summary
YHierarchyGraphElementProvider(Graph graph)
           
 
Method Summary
 Iterator getEdgeObjects()
          Return an iterator over all edges that are contained in the current graph object
 Iterator getNodeObjects()
          Return an iterator over all nodes that are contained in the current graph object
 GraphElementProvider getNodeSubgraph(Object nodeObject)
          Clustered/nested graphs are not supported yet.
 Object getSourceNode(Object edgeObject)
          Returns the source node of an edge.
 Object getTargetNode(Object edgeObject)
          Returns the target node of an edge.
 
Methods inherited from class yext.graphml.writer.YGraphElementProvider
getEdgeCount, getEndpointObjects, getGraphObject, getHyperEdgeCount, getHyperEdgeObjects, getNodeCount, getPortObjects, getSourcePort, getTargetPort, isDefaultDirected, isDirected, setDefaultDirected, setEdgeDirection
 
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

YHierarchyGraphElementProvider

public YHierarchyGraphElementProvider(Graph graph)
Method Detail

getEdgeObjects

public Iterator getEdgeObjects()
Description copied from interface: GraphElementProvider
Return an iterator over all edges that are contained in the current graph object

Specified by:
getEdgeObjects in interface GraphElementProvider
Overrides:
getEdgeObjects in class YGraphElementProvider

getNodeObjects

public Iterator getNodeObjects()
Description copied from interface: GraphElementProvider
Return an iterator over all nodes that are contained in the current graph object

Specified by:
getNodeObjects in interface GraphElementProvider
Overrides:
getNodeObjects in class YGraphElementProvider

getNodeSubgraph

public GraphElementProvider getNodeSubgraph(Object nodeObject)
Description copied from class: YGraphElementProvider
Clustered/nested graphs are not supported yet.

Specified by:
getNodeSubgraph in interface GraphElementProvider
Overrides:
getNodeSubgraph in class YGraphElementProvider
Returns:
null.

getSourceNode

public Object getSourceNode(Object edgeObject)
Description copied from interface: GraphElementProvider
Returns the source node of an edge.

Specified by:
getSourceNode in interface GraphElementProvider
Overrides:
getSourceNode in class YGraphElementProvider

getTargetNode

public Object getTargetNode(Object edgeObject)
Description copied from interface: GraphElementProvider
Returns the target node of an edge.

Specified by:
getTargetNode in interface GraphElementProvider
Overrides:
getTargetNode in class YGraphElementProvider


Copyright ©2000-2009, yWorks GmbH. All rights reserved.