You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
Use the attached project in the Zip file.
Adding a node renderer whose labelCoordinates method puts the label in the same
location draws labels underneath the rendered nodes.
In My attached example project I set the itemRenderer to MyNodeRenderer.
MyNodeRenderer simple makes sure that the labelCoordinates method draws the
label on the same xy as the node itself.
What is the expected output? What do you see instead?
Expected: Labels on top of nodes
Actual: Labels covered by nodes
What version of the product are you using? On what operating system?
Subversion version 1828
Please provide any additional information below.
I am able to fix this by extending EnhancedVisualGraph overriding
createVNodeComponent and reordering the children in the nodeLayer so that the
node renderers are added first and the labels are added after. This forces the
labels to be drawn on top of the nodes.
I am willing to accept that my implementation is wrong and would welcome a
suggestion of a different way to implement it. I considered not using a label
renderer and just making the label part of the node. Seems like this might
also fix the issue.
Original issue reported on code.google.com by [email protected] on 28 Mar 2011 at 6:45
Original issue reported on code.google.com by
[email protected]
on 28 Mar 2011 at 6:45Attachments:
The text was updated successfully, but these errors were encountered: