|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.view.DefaultGraph2DFactory
This is the default implementation of a graph factory that
produces graphs of type Graph2D
and default
graph objects corresponding to that graph type.
Constructor Summary | |
DefaultGraph2DFactory()
|
Method Summary | |
Edge |
createEdge(Graph graph,
Node source,
Node target,
Object hint)
Returns a newly created edge object for the given graph. |
Graph |
createGraph(Object hint)
Creates a new instance of Graph2D . |
Node |
createNode(Graph graph,
Object hint)
Returns a newly created node object for the given graph. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultGraph2DFactory()
Method Detail |
public Graph createGraph(Object hint)
Graph2D
.
createGraph
in interface GraphFactory
hint
- the hint object will be ignored.
public Node createNode(Graph graph, Object hint)
createNode
in interface GraphFactory
graph
- the graph containing the newly created node.hint
- the hint object will be ignored.
public Edge createEdge(Graph graph, Node source, Node target, Object hint)
createEdge
in interface GraphFactory
graph
- the graph containing the newly created edge.source
- the source node of the newly created edge.target
- the target node of the newly created edge.hint
- the hint object will be ignored.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |