Packagecom.yworks.graph.model
Classpublic class DummyNodeId
InheritanceDummyNodeId Inheritance Object

A struct that can be used to describe a collapsed node in an IFoldedGraph view.

Instances of this type are passed to the various methods in FoldingManager to identify collapsed group nodes inside IFoldedGraph views.

See also

com.yworks.graph.model.FoldingManager.nodeHasViewState()
com.yworks.graph.model.FoldingManager.getNodeViewState()
com.yworks.graph.model.FoldingManager.getChangeNodeDummyAppearanceCallback()
com.yworks.graph.model.IFoldedGraph.isDummy()
com.yworks.graph.model.DummyEdgeId


Public Properties
 PropertyDefined By
  masterNode : INode
[read-only] The node instance in the FoldingManager's masterGraph that is represented by dummies in a IFoldedGraph view.
DummyNodeId
Public Methods
 MethodDefined By
  
DummyNodeId(masterNode:INode)
Initializes a dummy node id for a collapsed dummy node in a IFoldedGraph view using the provided master node.
DummyNodeId
  
create(foldedGraph:IFoldedGraph, localNode:INode):DummyNodeId
[static] Initializes a dummy node id from an actual node in a IFoldedGraph.
DummyNodeId
Property Detail
collapsedproperty
collapsed:Boolean


Implementation
    yworks_internal function get collapsed():Boolean
    yworks_internal function set collapsed(value:Boolean):void
masterNodeproperty 
masterNode:INode  [read-only]

The node instance in the FoldingManager's masterGraph that is represented by dummies in a IFoldedGraph view.


Implementation
    public function get masterNode():INode
Constructor Detail
DummyNodeId()Constructor
public function DummyNodeId(masterNode:INode)

Initializes a dummy node id for a collapsed dummy node in a IFoldedGraph view using the provided master node.

Parameters
masterNode:INode — The node in the mastergraph this dummy node will represent
Method Detail
create()method
public static function create(foldedGraph:IFoldedGraph, localNode:INode):DummyNodeId

Initializes a dummy node id from an actual node in a IFoldedGraph.

Parameters

foldedGraph:IFoldedGraph — The graph that contains the localNode.
 
localNode:INode — The node for which an id should be created.

Returns
DummyNodeId
create2()method 
yworks_internal static function create2(masterNode:INode, collapsed:Boolean):DummyNodeId

Parameters

masterNode:INode
 
collapsed:Boolean

Returns
DummyNodeId