Auar / flexvizgraphlib

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

displayEdgeLabels set to false causes the labels to be drawn in the middle of the graph #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a visual graph with the displayEdgeLabels property set to false.
2. Set the edgeLabelRenderer for the graph to a custom class.

What is the expected output? What do you see instead?
I expected to see the labels displayed according to my custom renderer,
instead I saw the labels displayed in the middle of the graph, not one the
edge itself.

What version of the product are you using? On what operating system?
I am using the latest version from SVN.  I am on Windows XP pro.

Please provide any additional information below.
Attached is an example of what I am seeing.  If I set the displayEdgeLabels
property to true then the labels are drawn properly.

Original issue reported on code.google.com by keith.mc...@spirent.com on 22 Oct 2007 at 7:00

Attachments:

GoogleCodeExporter commented 9 years ago
This is because the createVEdgeView() function adds the edge label component to 
the
canvas. However, since displayEdgeLabels is false, their correct position is not
calculated by the edge renderer. Hence, the error occurs.

If you uncheck the checkbox the label should be removed. It happens when you 
run the
application and the graph is loaded.

Original comment by ritwikmi...@gmail.com on 20 Nov 2007 at 7:32

GoogleCodeExporter commented 9 years ago
Is this still the case? Looking at the code now, seems that createVEdgeView() 
will
never be called if displayEdgeLabels is false. Could that someone confirm 
please?

Original comment by spo...@gmail.com on 21 Mar 2008 at 3:31