Package | com.yworks.graph.model |
Interface | public interface IDummyNodeConverter |
Implementors | DefaultDummyNodeConverter |
FoldingManager
and IFoldedGraph
which is responsible for managing the appearance of dummy nodes.
Since FoldingManager.createManagedView()
creates views that can potentially
contain nodes which have a different set of attributes, these attributes need to be determined somehow.
Implementations of this interface are being called by
the IFoldedGraph
views to configure the appearance of these dummy nodes.
See also
Method | Defined By | ||
---|---|---|---|
changeDummyNodeAppearance(callback:IChangeDummyNodeAppearanceCallback, foldedGraph:IFoldedGraph, dummyNode:INode, masterNode:INode):void
Callback that is used by IFoldedGraph view implementations to change the appearance
of a dummy node. | IDummyNodeConverter | ||
createDummyNodeAppearance(callback:IChangeDummyNodeAppearanceCallback, foldedGraph:IFoldedGraph, dummyNode:INode, masterNode:INode):void
Callback that is used by IFoldedGraph view implementations to initially create the appearance
of a dummy node. | IDummyNodeConverter |
changeDummyNodeAppearance | () | method |
public function changeDummyNodeAppearance(callback:IChangeDummyNodeAppearanceCallback, foldedGraph:IFoldedGraph, dummyNode:INode, masterNode:INode):void
Callback that is used by IFoldedGraph
view implementations to change the appearance
of a dummy node.
This method is called by the view to allow for adjusting the appearance of a local dummy node in
the view when the master node for it has
changed properties.
This can be used, e.g. to synchronize the label or style properties with the corresponding properties
of the masterNode
.
Note that changing the appearance has to be done using the callback
that
implements the IChangeDummyNodeAppearanceCallback
interface. Direct changes to the dummyNode
would otherwise be enqueued into the undo queue and could thus break the undo stack.
Parameters
callback:IChangeDummyNodeAppearanceCallback — The callback to use for changing the appearance.
| |
foldedGraph:IFoldedGraph — The graph instance for which the dummy node can be changed.
| |
dummyNode:INode — The dummy node instance in the view
| |
masterNode:INode — The node that represents the master item that
is represented in the local view by the dummyNode .
|
See also
createDummyNodeAppearance | () | method |
public function createDummyNodeAppearance(callback:IChangeDummyNodeAppearanceCallback, foldedGraph:IFoldedGraph, dummyNode:INode, masterNode:INode):void
Callback that is used by IFoldedGraph
view implementations to initially create the appearance
of a dummy node.
This method is called by the view to allow for initially creating the appearance of a local dummy node in
the view when it is included in the view for the first time.
This can be used, e.g. to initialize the labels or style properties with the corresponding properties
of the masterNode
.
Note that changing the appearance has to be done using the callback
that
implements the IChangeDummyNodeAppearanceCallback
interface. Direct changes to the dummyNode
would otherwise be enqueued into the undo queue and could thus break the undo stack.
Parameters
callback:IChangeDummyNodeAppearanceCallback — The callback to use for determining the appearance.
| |
foldedGraph:IFoldedGraph — The graph instance for which the dummy node has been created.
| |
dummyNode:INode — The dummy node instance in the view
| |
masterNode:INode — The node that represents the master item that
is represented in the local view by the dummyNode .
|
See also