This functionality is only available for certain module packages.

You are here: Tutorial > GRAPH2D discipline > Configuring connections > Representation of the connections

Representation of the connections

The representation of a connection comprises the attributes line thickness, line style, line color, decorator of start of line and end of line and which text is to be displayed as a tooltip.

  1. Below the node with id=”LAN_Reference”, insert the following lines.
  2. <!-- Connection of Worker to Device -->
    <connection
     id="Worker_Path" reference="Worker_Reference" router="Bendpoint"
    width="2" style="1" color="0,255,0" sourceDeco="empty" targetDeco="empty"
    tooltip="=if not src.$Name.isNull 
    		then src.$Name
    		else 
    			if not src.$Number.isNull 
    				then src.$Number 
    				else 'Enter data' 
    			endif 
    	endif 
    	+ ' | ' + 
    			if not (target.$Name.isNull) 
    				then target.$Name 
    				else 
    					if not (target.$Number.isNull) 
    						then target.$Number 
    						else 'Enter data' 
    					endif 
    			endif" />
    <!-- Connection of Slave to Slave -->
    <connection
    	id="LAN_Path"reference="LAN_Reference"
    	width="2"
    	style="1"
    	color="255,0,0"
    	sourceDeco="empty"
    	targetDeco="empty"
    	tooltip="=src.getName() + ' of ' + 
    			if not src.mc.$Name.isNull 
    				then src.mc.$Name
    				else 
    					if not src.mc.$Number.isNull 
    						then src.mc.$Number
    						else 'Enter data'
    					endif
    			endif
    			 + ' | ' + target.getName() + ' of ' + 
    			if not target.mc.$Name.isNull 
    				then target.mc.$Name
    				else 
    					if not target.mc.$Number.isNull 
    						then target.mc.$Number
    						else 'Enter data'
    					endif
    			endif" />
  3. Save the diagram configuration ([Ctrl] + [S]).