Search this API

y.io.graphml.output
Interface GraphElementIdProvider

All Known Implementing Classes:
DefaultGraphElementIdProvider

public interface GraphElementIdProvider

Interface for classes that provide custom id's for core graphml elements


Method Summary
 String getEdgeId(Edge edge, GraphMLWriteContext context)
          Get an ID for the specified edge Object
 String getGraphId(Graph graph, GraphMLWriteContext context)
          Get an ID for the specified graph Object
 String getNodeId(Node node, GraphMLWriteContext context)
          Get an ID for the specified node Object
 String getPortId(Port port, Node owner, GraphMLWriteContext context)
          Get an ID for the specified port Object
 

Method Detail

getGraphId

String getGraphId(Graph graph,
                  GraphMLWriteContext context)
Get an ID for the specified graph Object

Parameters:
graph - the current graph Object
context - the current write context, for further information to the provider
Returns:
an ID for the specified graph Object

getNodeId

String getNodeId(Node node,
                 GraphMLWriteContext context)
Get an ID for the specified node Object

Parameters:
node - the current node Object
context - the current write context, for further information to the provider
Returns:
an ID for the specified node Object

getEdgeId

String getEdgeId(Edge edge,
                 GraphMLWriteContext context)
Get an ID for the specified edge Object

Parameters:
edge - the current edge Object
context - the current write context, for further information to the provider
Returns:
an ID for the specified edge Object

getPortId

String getPortId(Port port,
                 Node owner,
                 GraphMLWriteContext context)
Get an ID for the specified port Object

Parameters:
port - the current port Object
context - the current write context, for further information to the provider
owner - the node that owns the current port
Returns:
an ID for the specified port Object

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