shawnlaffan / biodiverse

A tool for the spatial analysis of diversity
http://shawnlaffan.github.io/biodiverse/
GNU General Public License v3.0
74 stars 19 forks source link

GUI - grey out non-highlighted tree nodes on grid hover #464

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The tree highlighting in the view labels tab bolds paths.  This works well for 
small trees, but is essentially invisible for large trees with many terminals.

An alternate approach is to grey out the non-selected paths, bringing the 
selected branches to the front.  

Implementation needs to wait for issue 353 to land on the trunk.  

Original issue reported on code.google.com by shawnlaffan on 17 May 2014 at 5:29

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2575.

Changed highlighting method for trees to use current colour for highlighted 
node/path, and grey out other values.  (considered using 80% greying of 
existing colours, but that requires a new palette definition, and choosing 
plain grey is easier).  Also catches when user leaves hovering, and returns the 
tree to natural colours.

Original comment by anthony....@gmail.com on 27 Jul 2014 at 3:31

GoogleCodeExporter commented 9 years ago
This works really well for the view labels tab, and when the tree has no 
colouring in the cluster plots.  The issue is that the full grey makes it 
harder to see the clusters when hovering on the grid.  

One option is to add a branch overlay using an alpha channel for transparency 
(or perhaps a partially transparent box over which the highlighted paths are 
raised).  I'm not sure if the canvas library supports it, though.  

If that proves too complex then we can always make the highlighting an option 
(bold paths or grey-out the rest).

Original comment by shawnlaffan on 27 Jul 2014 at 11:31

GoogleCodeExporter commented 9 years ago
This was updated by r2602 which was attributed to issue 409

Original comment by shawnlaffan on 1 Aug 2014 at 1:44

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2604.

Re-organise some of the dendrogram plotting logic to use ternary conditions and 
the defined-or operator.  This makes the code less verbose, and hopefully 
slightly faster.
Also fix a callback issue with the glade file.  It was calling a non-existent 
callback.

Original comment by shawnlaffan on 1 Aug 2014 at 4:38

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2605.

Remove some recursion from the colouring and highlighting code.  This also 
takes advantage of the TreeNode caching to make subsequent calls faster.  

Original comment by shawnlaffan on 1 Aug 2014 at 5:00

GoogleCodeExporter commented 9 years ago
RGBA for canvas items:  
https://developer.gnome.org/libgnomecanvas/stable/GnomeCanvasLine.html#GnomeCanv
asLine--fill-color-rgba

Original comment by shawnlaffan on 2 Aug 2014 at 9:03

GoogleCodeExporter commented 9 years ago

Original comment by shawnlaffan on 26 Aug 2014 at 5:50

GoogleCodeExporter commented 9 years ago

Original comment by shawnlaffan on 26 Aug 2014 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by shawnlaffan on 13 Sep 2014 at 6:44

GoogleCodeExporter commented 9 years ago

Original comment by shawnlaffan on 13 Sep 2014 at 6:45

GoogleCodeExporter commented 9 years ago
On further thought, using rgba is not necessary as many colours will be 
difficult to differentiate when they are simply greyed out, e.g. light blue 
versus a greyed out darker blue.
The current approach of only highlighting a single path in colour is simpler 
and less prone to confusion.  The highlighting can also be turned off by the 
user.
Possibly we could add an option to use bold to highlight (the old approach), 
but that can be in its own issue.  

Mark as fixed.  

Original comment by shawnlaffan on 12 Oct 2014 at 2:11