| Package | com.yworks.graph.model |
| Class | public class DummyNodePortId |
| Inheritance | DummyNodePortId Object |
DummyNodeId in a IFoldedGraph view.
Instances of this type are passed to the various methods in FoldingManager
to identify ports at dummy nodes inside IFoldedGraph views.
See also
| Property | Defined By | ||
|---|---|---|---|
| atDummy : Boolean [read-only]
Whether the port is at a dummy node. | DummyNodePortId | ||
| masterPort : IPort [read-only]
The port instance in the FoldingManager's masterGraph that is represented by dummies in
a IFoldedGraph view. | DummyNodePortId | ||
| Method | Defined By | ||
|---|---|---|---|
DummyNodePortId(masterPort:IPort, atDummy:Boolean = true)
Initializes a dummy port id
using the IFoldedGraph.GetMaster{T} node
in the FoldingManager.MasterGraph and the collapsed state. | DummyNodePortId | ||
[static]
Initializes a dummy node id from an actual node in a IFoldedGraph. | DummyNodePortId | ||
| atDummy | property |
atDummy:Boolean [read-only] Whether the port is at a dummy node.
Typically this will yield true because only ports at
collapsed nodes are dummy node ports.
public function get atDummy():Boolean| masterPort | property |
masterPort:IPort [read-only]
The port instance in the FoldingManager's masterGraph that is represented by dummies in
a IFoldedGraph view.
public function get masterPort():IPort| DummyNodePortId | () | Constructor |
public function DummyNodePortId(masterPort:IPort, atDummy:Boolean = true)
Initializes a dummy port id
using the IFoldedGraph.GetMaster{T} node
in the FoldingManager.MasterGraph and the collapsed state.
masterPort:IPort — The port in the mastergraph this dummy node will represent
| |
atDummy:Boolean (default = true) — If the dummy node is collapsed. This should be set to true, because
there are currently no dummy ports at non-collapsed nodes.
|
| create | () | method |
public static function create(foldedGraph:IFoldedGraph, localPort:IPort):DummyNodePortId
Initializes a dummy node id from an actual node in a IFoldedGraph.
Parameters
foldedGraph:IFoldedGraph — The graph that contains the localPort.
| |
localPort:IPort — The node for which an id should be created.
|
DummyNodePortId |