Modified GoLabeledLink


#1

Hi,
I would like to build a pipe component and having looked at the available options (GoStroke, GoLabelledLink etc) we decided to choose a GoLabelled link (as we also need the ability place and size the pipe and to have connection ports at the end and middle of the ‘pipe’).
Is it also possible to modify the GoLabelled Link (and if so what is the most elegant way) to display a simple vector graphics symbol at its centre (for example a circle with an arrowhead inside).
Any thoughts whatsoever would be useful,
many thanks


#2

Sure. Just set GoLabeledLink.MidLabelCentered to true and the GoLabeledLink.MidLabel to a GoGroup consisting of appropriately sized objects such as a GoEllipse and a GoPolygon.