|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.graph2d.Graph2DElementFactory
public class Graph2DElementFactory
The basic implementation of the GraphElementFactory
interface for use with the default Graphs.
This implementation does not create any hierarchy information, you should use a decoration implementation
like HierarchyManagerBasedGraphElementFactory instead.
This uses the CreationProperties from the
GraphMLParseContext to create the items with the correct
initial values if they have been put into the creation properties
by InputHandler implementations that have been
invoked before the creation of the items.
![]() |
![]() |
| Constructor Summary | |
|---|---|
Graph2DElementFactory()
|
|
| Method Summary | |
|---|---|
Edge |
createEdge(GraphMLParseContext context,
Node sourceNode,
Port sourcePort,
Node targetNode,
Port targetPort)
Creates an normal edge for the given context and the provided source and target nodes or ports. |
Node |
createNode(GraphMLParseContext context)
Creates and configures a normal node for the given context. |
Port |
createPort(GraphMLParseContext context,
Node owner)
Creates NodePort instances that are bound to the specified node's
visual representation (its NodeRealizer). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Graph2DElementFactory()
| Method Detail |
|---|
public Node createNode(GraphMLParseContext context)
This implementation uses node realizer and layout information from the context if available
createNode in interface GraphElementFactorycontext - The context from which the graph, the CreationProperties,
and the GraphMLParseContext.getObjectStack()
can be queried.
public Edge createEdge(GraphMLParseContext context,
Node sourceNode,
Port sourcePort,
Node targetNode,
Port targetPort)
This implementation uses edge realizer and layout information from the context if available
createEdge in interface GraphElementFactorycontext - 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.
public Port createPort(GraphMLParseContext context,
Node owner)
NodePort instances that are bound to the specified node's
visual representation (its NodeRealizer).
createPort in interface GraphElementFactorycontext - the context from which the graph, the
CreationProperties, and the
GraphMLParseContext.getObjectStack() can be
queried.owner - The owner of the port object
NodePort.
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||