UniversalLinkData
This simple class is handy with many GraphLinksModels or with UniversalGraphLinksModel, so that for many cases you do not need to define your own link data class inheriting from GraphLinksModelLinkData.
Inherits: GraphLinksModelLinkData<object, string>
Constructors
public UniversalLinkData()
universalLinkData = UniversalLinkData()
The default constructor produces link-representing data that needs to be initialized.
public UniversalLinkData(object fromnodekey, object tonodekey)
universalLinkData = UniversalLinkData(fromnodekey, tonodekey)
This constructor produces a link-representing data that connects two nodes, identified by their node data keys.
- fromnodekey
- the initial value for From
- tonodekey
- the initial value for To
public UniversalLinkData(object fromnodekey, object tonodekey, string labeltext)
universalLinkData = UniversalLinkData(fromnodekey, tonodekey, labeltext)
This constructor produces a link-representing data that connects two nodes, identified by their node data keys, and the text for a label annotation.
- fromnodekey
- the initial value for From
- tonodekey
- the initial value for To
- labeltext
- the initial value for Text
public UniversalLinkData(object fromnodekey, string fromport, object tonodekey, string toport)
universalLinkData = UniversalLinkData(fromnodekey, fromport, tonodekey, toport)
This constructor produces a link-representing data that connects two nodes and also provides port-identifying information at each node.
- fromnodekey
- the initial value for From
- fromport
- the initial string value for FromPort
- tonodekey
- the initial value for To
- toport
- the initial string value for ToPort
public UniversalLinkData(object fromnodekey, string fromport, object tonodekey, string toport, string labeltext)
universalLinkData = UniversalLinkData(fromnodekey, fromport, tonodekey, toport, labeltext)
This constructor produces a link-representing data that connects two nodes and also provides port-identifying information at each node and the text for a label annotation.
- fromnodekey
- the initial value for From
- fromport
- the initial string value for FromPort
- tonodekey
- the initial value for To
- toport
- the initial string value for ToPort
- labeltext
- the initial value for Text