Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Sep 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant