Opened 8 years ago

Last modified 4 years ago

#745 new enhancement

optionally word-wrap group names in tree display

Reported by: westram Owned by:
Priority: major Milestone:
Component: Library (tree) Version: SVN
Keywords: Cc:

Description

Motivation:

Long group names as Firmicutes, Tenericutes, Negativicutes and Cyanobacteria result in broad dendrogram treeviews when group-brackets are shown. Doing a zoom-reset (e.g. by resizing the window) hence results in a X-squeezed view, i.e. the tree-structure itself only uses a few % of available width.

Implementation:

  • add [v] Word-wrap group names? to tree options
  • word-wrap group name at spaces or hyphens
    • pass max. allowed lines to wrapper-function (depends on vertical size of group-dendrogram or -bracket, on fontsize and on extra lines needed for other information as number of marked species)
    • examples for 5, 4, 3 and 2 lines allowed:
      Firmicutes,
      Tenericutes,
      Negativicutes
      and
      Cyanobacteria
      
      Firmicutes,
      Tenericutes,
      Negativicutes
      and Cyanobacteria
      
      Firmicutes, Tenericutes,
      Negativicutes and
      Cyanobacteria
      
      Firmicutes, Tenericutes,
      Negativicutes and Cyanobacteria
      
    • optimize for minimal X-width (and minimal Y-width as 2nd criteria)

Change History (1)

comment:1 Changed 4 years ago by westram

  • Priority changed from normal to major
Note: See TracTickets for help on using tickets.