Hi Scooter,
forst of all, thanks for the reply!
Secondly, sorry for the delay, but I was quite busy the past few days...
I'll try to explain better what I'm trying to achieve. I have started to do a little research (that I hope will become my master thesis in computer science) in graph layout. More specifically, I'm interested in finding practical automatic label layouts. This work is actually inspired in my previous experience in this area as part of Google Summer of Code 2010, where helped by Mike Smoot I added to Cytoscape layouts the possibility of easily managing labels.
To study different graph layouts, I need to create some sort of framework, and for that purpose I'm writing a plugin that will take a graph layout an perform several analysis over it, calculating statistics and metrics in an attempt of quantify how good a layout is.
This plugin will also create a new view of the network in which the overlap between nodes and labels will be show by painting them red, while non overlapping elements will be painted green. This will give the user a change of classify layouts as 'good' or 'bad' at a glance.
To achieve this goals, I'm facing the difficulties that I mentioned before:
1- Be able to retrieve the exact coordinates of a given label, as well as its dimensions.
2- Be able to replace labels (in the new network) with red or green rectangles, of exactly the same size and position of the label in the original graph view.
I've been quite stuck with this 2 issues for a while, so any help will be greatly appreciated!
Thanks in advance!
Gerardo
PS: Of course, I intend to make freely available this plugin when it's finished (I was thinking of releasing it under GPL v3).