I’d like to draw the following image:
To draw this object I was thinking of using a GoLabeledLink set with a pen of my width (whatever width) and my color (in this case green) and a RotatedText object (which I converted to VB from your C# example) as the label. The RotatedText’s background color is set to my color (in this case green). Notice that the label draws over top of the link line. For this example imagine the pen width of the link line is 20 points, the text width is 10 points. Link line height will always be greater than text height.
I’m running into trouble drawing this object because the golabeledlink does not connect two objects. Instead, I am setting the reallink’s endpoints explicitly (gll.reallink.setpoint(…)). Is this allowed?. Nothing renders on-screen - I don’t see a link line or text. I think my math is correct for calculating the endpoints. I compute the link’s endpoints in the layoutchildren method within the object that contains the golabeledlink.
From reading the forums it would seem that golabeledlink can handle null to/from nodes/ports. Am I missing something here?
Thanks a lot for your help.