|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GraphElementFactory
This is the interface for a factory that is used for creating the constituents of an Graph
that are encountered during the parsing of GraphMLParser
GraphMLHandler.createGraphElementFactory(GraphMLParser, y.base.Graph)
| 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. |
Port |
createPort(GraphMLParseContext context,
Node owner)
Creates a port object that is owned by owner |
| Method Detail |
|---|
Node createNode(GraphMLParseContext context)
context - The context from which the graph, the CreationProperties, and the GraphMLParseContext.getObjectStack()
can be queried.
Edge createEdge(GraphMLParseContext context,
Node sourceNode,
Port sourcePort,
Node targetNode,
Port targetPort)
context - 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.
Port createPort(GraphMLParseContext context,
Node owner)
owner
context - owner - The owner of the port object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||