This interface is a factory for creating and destroying helper structures used in the graph during layout.
Remarks
Type Details
- yfiles module
- layout-hierarchic
- yfiles-umd modules
- layout-familytree, layout-hierarchic, layout-radial, layout
- Legacy UMD name
- yfiles.hierarchic.IItemFactory
Methods
Creates a bend YNode for the given Edge in the given ILayer and assigns it to the given SwimlaneDescriptor instance.
Parameters
A map of options to pass to the method.
- layer - ILayer
- the given ILayer instance
- edge - Edge
- the given Edge
- laneDescriptor - SwimlaneDescriptor
- a given SwimlaneDescriptor instance
Returns
Creates a INodeData object for a bend YNode and associates it with the YNode.
Remarks
Parameters
A map of options to pass to the method.
- node - YNode
- the given YNode
- edge - Edge
- the given Edge
- laneDescriptor - SwimlaneDescriptor
- the given SwimlaneDescriptor instance
Returns
createBusDummyEdge
(sourceBusNode: YNode, targetBusNode: YNode, edgeLayoutDescriptor: HierarchicLayoutEdgeLayoutDescriptor, groupingId: Object, groupingAtSource: boolean) : EdgeCreates a dummy edge that models the bus segment of a bus substructure.
Remarks
Parameters
A map of options to pass to the method.
- sourceBusNode - YNode
- the source bus dummy node or the root node of the bus substructure
- targetBusNode - YNode
- the target bus dummy node or the root node of the bus substructure
- edgeLayoutDescriptor - HierarchicLayoutEdgeLayoutDescriptor
- the descriptor which is assigned to the new dummy edge
- groupingId - Object
- the edge grouping id assigned to the new dummy edge
- groupingAtSource - boolean
true
if the dummy edge should be grouped at the source side,false
if it should be grouped at the target side
Returns
- ↪Edge
- the newly created bus dummy edge connecting the two given nodes
createBusDummyEdgeData
(busDummyEdge: Edge, edgeLayoutDescriptor: HierarchicLayoutEdgeLayoutDescriptor, groupingId: Object, groupingAtSource: boolean) : IEdgeDataCreates an IEdgeData instance for a bus dummy edge.
Parameters
A map of options to pass to the method.
- busDummyEdge - Edge
- the bus dummy edge
- edgeLayoutDescriptor - HierarchicLayoutEdgeLayoutDescriptor
- the descriptor which is assigned to the given bus dummy edge
- groupingId - Object
- the grouping id assigned to the given bus dummy edge
- groupingAtSource - boolean
true
if the dummy edge is grouped at the source side,false
if it is grouped at the target side
Returns
Creates a dummy node that is used during the sequencing and drawing phase for the bus-style routing edges at a certain root node.
Parameters
A map of options to pass to the method.
- layer - ILayer
- the layer to which the created dummy node is added
- groupNode - YNode
- the group node to which the created dummy node is added
- laneDescriptor - SwimlaneDescriptor
- the lane to which the dummy should belong to
Returns
- ↪YNode
- the newly created bus dummy node
See Also
createBusDummyNodeData
(busDummyNode: YNode, groupNode: YNode, laneDescriptor: SwimlaneDescriptor) : INodeDataCreates a INodeData instance for a bus dummy node.
Parameters
A map of options to pass to the method.
- busDummyNode - YNode
- the bus dummy node for which the data is created
- groupNode - YNode
- the group node to which the bus dummy node belongs
- laneDescriptor - SwimlaneDescriptor
- the lane to which the bus dummy node belongs
Returns
createContentConnectorProxyForGroup
(groupNode: YNode, groupId: Object, layer: ILayer, e: Edge) : YNodeCreates a dummy node that mimics a connector to a group node from a descendant.
Parameters
A map of options to pass to the method.
- groupNode - YNode
- the group node to which the edge is connected
- groupId - Object
- the id of the group node
- layer - ILayer
- the layer to which the dummy node will be assigned
- e - Edge
- the edge that connects to the dummy node
Returns
- ↪YNode
- the dummy node
createDummyEdge
(newSource: YNode, newTarget: YNode, oldEdge: Edge, sourceEnd: boolean, targetEnd: boolean) : EdgeCreates a dummy Edge using the given data.
Parameters
A map of options to pass to the method.
- newSource - YNode
- the source node of the Edge
- newTarget - YNode
- the target node of the Edge
- oldEdge - Edge
- the old Edge from which to retrieve the data
- sourceEnd - boolean
true
if the source node of the edge is referred,false
otherwise- targetEnd - boolean
true
if the target node of the edge is referred,false
otherwise
Returns
Creates a proxy YNode for an Edge during the drawing phase, changing the Edge to end/start at the proxy and assigns it to a SwimlaneDescriptor instance.
Parameters
A map of options to pass to the method.
- edge - Edge
- the given Edge
- source - boolean
true
if the node is the source node of the edge,false
otherwise- laneDescriptor - SwimlaneDescriptor
- a given SwimlaneDescriptor instance
Returns
createRecursiveDummyEdge
(newSource: YNode, newTarget: YNode, oldEdge: Edge, sourceEnd: boolean, targetEnd: boolean) : EdgeCreates a dummy edge that belongs to a recursive Edge.
Parameters
A map of options to pass to the method.
- newSource - YNode
- the source node of the Edge
- newTarget - YNode
- the target node of the Edge
- oldEdge - Edge
- the old Edge from which to retrieve the data
- sourceEnd - boolean
true
if the source node of the edge is referred,false
otherwise- targetEnd - boolean
true
if the target node of the edge is referred,false
otherwise
Returns
Creates a dummy YNode that represents a bend node of a recursive Edge.
Parameters
A map of options to pass to the method.
- layer - ILayer
- edge - Edge
- laneDescriptor - SwimlaneDescriptor
- the given SwimlaneDescriptor instance
Returns
createRecursiveEdgeNodeData
(node: YNode, edge: Edge, laneDescriptor: SwimlaneDescriptor) : INodeDataCreates a INodeData for a dummy YNode of a recursive Edge.
Parameters
A map of options to pass to the method.
- node - YNode
- the given YNode
- edge - Edge
- laneDescriptor - SwimlaneDescriptor
- the given SwimlaneDescriptor instance
Returns
createRecursiveSameLayerEdgeData
(edge: Edge, originalEdgeData: IEdgeData, isUpper: boolean) : IEdgeDataCreates an IEdgeData object for a same-layer recursive Edge and associates it with the edge.
createReverseDummyEdge
(newSource: YNode, newTarget: YNode, oldEdge: Edge, sourceEnd: boolean, targetEnd: boolean) : EdgeCreates a reversed dummy Edge using the given data.
Parameters
A map of options to pass to the method.
- newSource - YNode
- the source node of the Edge
- newTarget - YNode
- the target node of the Edge
- oldEdge - Edge
- the old Edge from which to retrieve the data
- sourceEnd - boolean
true
if the source node of the edge is referred,false
otherwise- targetEnd - boolean
true
if the target node of the edge is referred,false
otherwise
Returns
createSameLayerSideProxy
(inLayer: ILayer, forNode: YNode, edge: Edge, sld?: SwimlaneDescriptor) : YNodeCreates a proxy YNode for a same-layer Edge during the drawing phase that ends at the side of a node.
Parameters
A map of options to pass to the method.
- inLayer - ILayer
- the given ILayer instance
- forNode - YNode
- the given YNode
- edge - Edge
- the given Edge
- sld - SwimlaneDescriptor
- a given SwimlaneDescriptor instance
Returns
Destroys a spacer YNode for the drawing phase created using createDistanceNode.
Removes the given layer for proxies at groups to handle direct group content connector edges between a node in the first/last layer of the group node and the groups border.
Parameters
A map of options to pass to the method.
- layer - ILayer
- the layer to destroy
- useInEdges - boolean
- whether the incoming edges should be used as the resulting edges
See Also
Destroys a proxy YNode created using createProxyNode for the drawing phase.
Inserts a layer for proxies at groups to handle direct group content connector edges between a node in the first/last layer of the group node and the groups border.
Parameters
A map of options to pass to the method.
- top - boolean
true
if this layer is placed above a group nodes,false
if placed below- index - number
- the index where the layer is inserted
Returns
- ↪ILayer
- the new layer
See Also
Specifies a port constraint for an Edge at the given side and assigns it to an IEdgeData object.
Parameters
A map of options to pass to the method.
- edge - Edge
- the given Edge
- source - boolean
- pc - PortConstraint
- the given PortConstraint instance