gogo649 / birdeye

Automatically exported from code.google.com/p/birdeye
0 stars 0 forks source link

Enhanced Node Labels render under nodes if coordinates are the same. #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 Jebad...@gmail.com on 28 Mar 2011 at 6:45

Attachments: