Package | com.yworks.graph.model |
Class | public class DefaultDummyEdgeConverter |
Inheritance | DefaultDummyEdgeConverter AbstractDummyEdgeConverter Object |
IDummyEdgeConverter
that
is used by the FoldingManager
initially and can be customized to suit the application's needs.
See also
Property | Defined By | ||
---|---|---|---|
cloneEdgeStyle : Boolean
Indicates whether the dummyEdgeStyle instance should
be assigned as a clone or not. | AbstractDummyEdgeConverter | ||
copyFirstLabel : Boolean
Indicates whether the first label of the master edge
should be recreated for the dummy edge. | AbstractDummyEdgeConverter | ||
dummyEdgeStyle : IEdgeStyle
Gets or sets the IEdgeStyle to use for the dummy edge. | AbstractDummyEdgeConverter | ||
dummySourcePortStyle : IPortStyle
Gets or sets the IPortStyle to use for the dummy source port. | AbstractDummyEdgeConverter | ||
dummyTargetPortStyle : IPortStyle
Gets or sets the IPortStyle to use for the dummy target port. | AbstractDummyEdgeConverter | ||
firstLabelModelparameter : ILabelModelParameter [read-only]
Gets or sets the ILabelModelParameter to use for the first label of the dummy edge. | AbstractDummyEdgeConverter | ||
firstLabelModelParameter : ILabelModelParameter [write-only] | AbstractDummyEdgeConverter | ||
firstLabelStyle : ILabelStyle
Gets or sets the ILabelStyle to use for the first label of the dummy edge. | AbstractDummyEdgeConverter | ||
resetBends : Boolean
Indicates whether to reset and clear the bends of a dummy edge initially. | AbstractDummyEdgeConverter | ||
resetDummyPorts : Boolean
Indicates whether to reset the location of dummy ports to the
center of the node. | AbstractDummyEdgeConverter | ||
reuseDummyNodePorts : Boolean
Gets or sets a property that determines whether this implementation should
reuse the ports of dummy nodes for the dummy edges. | DefaultDummyEdgeConverter | ||
reuseMasterPorts : Boolean
Gets or sets a property that determines whether this implementation should
reuse the ports
of the FoldingManager#masterGraph
at non-dummy nodes for the dummy edges. | DefaultDummyEdgeConverter |
Method | Defined By | ||
---|---|---|---|
addDummyEdge(callback:IAddDummyEdgeCallback, foldedGraph:IFoldedGraph, masterEdge:IEdge, localSourceNode:INode, sourceDummy:Boolean, localTargetNode:INode, targetDummy:Boolean):IEdge [override]
Actually adds the dummy edge as a separate edge
to the view, reusing existing port representatives
of the original source and target port, if reuseMasterPorts is enabled and that is possible for the given edge. | DefaultDummyEdgeConverter | ||
changeDummyEdgeAppearance(callback:IChangeDummyEdgeAppearanceCallback, foldedGraph:IFoldedGraph, localDummyEdge:IEdge, masterEdges:List):void
Callback that is triggered by the IFoldedGraph view to adjust the appearance of a dummy edge, e.g. | AbstractDummyEdgeConverter | ||
createDummyEdgeAppearance(callback:IChangeDummyEdgeAppearanceCallback, foldedGraph:IFoldedGraph, localDummyEdge:IEdge, masterEdges:List):void
Callback that is triggered by the IFoldedGraph view to initially create
the appearance of a dummy edge. | AbstractDummyEdgeConverter |
reuseDummyNodePorts | property |
reuseDummyNodePorts:Boolean
Gets or sets a property that determines whether this implementation should reuse the ports of dummy nodes for the dummy edges.
The IFoldedGraph
view can be configured to use separate port instances for
dummy edges. This makes it possible to assign different styles and locations to
source and target ports of dummy edges, which may be desirable if the style and geometry of dummy edges
differs a lot from the style of the master edges.
Dummy nodes (collapsed group nodes), will have all of
their master's ports represented
in the view. This property can be used to make dummy edges that connect to the master ports
connect to these dummy port instances instead of creating extra dummy ports for the edges.
Note that ports can only be automatically reused by dummy edges if they still connect to the same nodes. Otherwise
the view will have to create new dummy ports to let the edges connect to the representing adjacent nodes.
This property can be set to true
, iff the graph model used is port-centric, i.e. each edge
connects to specific ports and even dummy edges should still connect to those specific port instances, if
possible.
The default value is false
.
public function get reuseDummyNodePorts():Boolean
public function set reuseDummyNodePorts(value:Boolean):void
See also
reuseMasterPorts | property |
reuseMasterPorts:Boolean
Gets or sets a property that determines whether this implementation should
reuse the ports
of the FoldingManager#masterGraph
at non-dummy nodes for the dummy edges.
The IFoldedGraph
view can be configured to use separate port instances for
dummy edges. This makes it possible to assign different styles and locations to
source and target ports of dummy edges, which may be desirable if the style and geometry of dummy edges
differs a lot from the style of the master edges.
Dummy edges may of course still connect to non-dummy nodes at one of their ports. Setting this
property to true
will make the dummy edge connect to the
represented port instance.
This property can be set to true
, iff the graph model used is port-centric, i.e. each edge
connects to specific ports and even dummy edges should still connect to those specific port representatives.
The default value is false
.
public function get reuseMasterPorts():Boolean
public function set reuseMasterPorts(value:Boolean):void
See also
addDummyEdge | () | method |
override public function addDummyEdge(callback:IAddDummyEdgeCallback, foldedGraph:IFoldedGraph, masterEdge:IEdge, localSourceNode:INode, sourceDummy:Boolean, localTargetNode:INode, targetDummy:Boolean):IEdge
Actually adds the dummy edge as a separate edge
to the view, reusing existing port representatives
of the original source and target port, if reuseMasterPorts
is enabled and that is possible for the given edge.
Parameters
callback:IAddDummyEdgeCallback — The IAddDummyEdgeCallback implementation.
| |
foldedGraph:IFoldedGraph — The instance into which the dummy edge is going to be inserted.
| |
masterEdge:IEdge — The edge from the FoldingManager 's masterGraph that needs to be represented by a dummy
edge.
| |
localSourceNode:INode — The source node that belongs to the IFoldedGraph view that will act as the local
representative of the actual source node.
| |
sourceDummy:Boolean — Determines whether the localSourceNode is currently a dummy node.
| |
localTargetNode:INode — The target node that belongs to the IFoldedGraph view that will act as the local
representative of the actual target node.
| |
targetDummy:Boolean — Determines whether the localTargetNode is currently a dummy node.
|
IEdge — The edge as returned by the call to IAddDummyEdgeCallback#addAsSeparateEdge() .
|
See also