Package | com.yworks.io.graphml.writer |
Class | public class DefaultGraphElementProvider |
Inheritance | DefaultGraphElementProvider Object |
Implements | IGraphElementProvider |
Method | Defined By | ||
---|---|---|---|
Creates a graph element provider that provides access to the elements of the given graph instance. | DefaultGraphElementProvider | ||
getEdgeCount():int
Returns the number of edges in the graph. | DefaultGraphElementProvider | ||
Returns an iterator over all edges that are contained in the current graph object. | DefaultGraphElementProvider | ||
getGraphObject():Object
Returns the graph object. | DefaultGraphElementProvider | ||
getNodeCount():int
Returns the number of nodes in the graph. | DefaultGraphElementProvider | ||
Returns an iterator over all nodes that are contained in the current graph object. | DefaultGraphElementProvider | ||
getNodeSubgraph(node:Object):IGraphElementProvider
Returns the subgraph which might be defined under a node. | DefaultGraphElementProvider | ||
getPortObjects(node:Object):Iterator
Returns an iterator over all ports that belong to the given node
| DefaultGraphElementProvider | ||
getSourceNode(edge:Object):Object
Returns the source node of the given edge. | DefaultGraphElementProvider | ||
getSourcePort(edge:Object):Object
Returns the source port of the given edge
| DefaultGraphElementProvider | ||
getTargetNode(edge:Object):Object
Returns the target node of the given edge
| DefaultGraphElementProvider | ||
getTargetPort(edge:Object):Object
Returns the target port of the given edge
| DefaultGraphElementProvider | ||
isDefaultDirected():Boolean
Returns whether the default direction of edges in the graph is
directed. | DefaultGraphElementProvider | ||
isDirected(edge:Object):Object
Returns true if the given edge is directed
| DefaultGraphElementProvider |
DefaultGraphElementProvider | () | Constructor |
public function DefaultGraphElementProvider(graph:IGraph)
Creates a graph element provider that provides access to the elements of the given graph instance.
Parametersgraph:IGraph — The graph to work on.
|
getEdgeCount | () | method |
public function getEdgeCount():int
Returns the number of edges in the graph.
Returnsint — the number of edges in the graph.
|
getEdgeObjects | () | method |
public function getEdgeObjects():Iterator
Returns an iterator over all edges that are contained in the current graph object.
ReturnsIterator — An iterator over all edges that are contained in the current graph object
|
getGraphObject | () | method |
public function getGraphObject():Object
Returns the graph object.
ReturnsObject — the graph object.
|
getNodeCount | () | method |
public function getNodeCount():int
Returns the number of nodes in the graph.
Returnsint — The number of nodes in the graph.
|
getNodeObjects | () | method |
public function getNodeObjects():Iterator
Returns an iterator over all nodes that are contained in the current graph object.
ReturnsIterator — An iterator over all nodes that are contained in the current graph object
|
getNodeSubgraph | () | method |
public function getNodeSubgraph(node:Object):IGraphElementProvider
Returns the subgraph which might be defined under a node.
Parameters
node:Object — The node for which a subgraph is searched
|
IGraphElementProvider — The element provider of the subgraph defined under the node,
or null if no such subgraph exists.
|
getPortObjects | () | method |
public function getPortObjects(node:Object):Iterator
Returns an iterator over all ports that belong to the given node
Parameters
node:Object — the node.
|
Iterator — an iterator over all ports that belong to the given node
|
getSourceNode | () | method |
public function getSourceNode(edge:Object):Object
Returns the source node of the given edge.
Parameters
edge:Object — the edge.
|
Object — The source node of the given edge
|
getSourcePort | () | method |
public function getSourcePort(edge:Object):Object
Returns the source port of the given edge
Parameters
edge:Object — the edge.
|
Object — the source port of the given edge
|
getTargetNode | () | method |
public function getTargetNode(edge:Object):Object
Returns the target node of the given edge
Parameters
edge:Object — the edge.
|
Object — the target node of the given edge
|
getTargetPort | () | method |
public function getTargetPort(edge:Object):Object
Returns the target port of the given edge
Parameters
edge:Object — the edge.
|
Object — the target port of the given edge
|
isDefaultDirected | () | method |
public function isDefaultDirected():Boolean
Returns whether the default direction of edges in the graph is directed.
ReturnsBoolean — true iff edges are directed by default
|
isDirected | () | method |
public function isDirected(edge:Object):Object
Returns true
if the given edge is directed
Parameters
edge:Object — the edge.
|
Object — true if the given edge is directed
|