fiji / Colocalisation_Analysis

Fiji's plugin for colocalization analysis
http://imagej.net/Coloc_2
GNU General Public License v3.0
25 stars 18 forks source link

Results: break up potentially very long text of 1st line of results, label field #24

Closed chalkie666 closed 7 years ago

chalkie666 commented 9 years ago

its easy to get for instance Colocalization_of_colocsample1b-green.tif_versus_colocsample1b-red.tif_1827000661 -1

which then doesn't wrap in the HTML table field of the SingleWindowDisplay implementation of ResultsHandler. In the PDF and log window it doesn't matter... but hard to see in the log window perhaps without making it big. It could be so big that it runs off the edge of the screen....

But we want a single string, for further data processing... and spaces would be hard to handle downstream..... so is there a way to make the text in an HTML table field wrap after a certain number of characters?

Perhaps this will do the job?

etadobson commented 7 years ago

@chalkie666 - I might have compounded this issue with my fix to #26 - at least for the log window, warning messages don't wrap either. Take a look and let me know what you think - but we can just leave it for now or we could just list the short message in the log window if you prefer??

etadobson commented 7 years ago

@chalkie666 - I've hit a wall on this one. I made some small, minor improvements ... but still cannot fix this long, single String not-wrapping issue.

chalkie666 commented 7 years ago

@etarena I don't know what to suggest unfortunately. I expect an experienced java person like Curtis et al might have a clue. Is ja just Java or us it a gui thing?

etadobson commented 7 years ago

no worries @chalkie666 ... I haven't bugged curtis with this yet. Might ask the community for input. stack overflow was not enough to get me an answer... it's an html/css thing. the tables (both warnings and results now - results weren't before) are wrapping just fine when spaces are present in the string... just not for single, long strings - ie - just the first line in results table.

I will ask the community for input. just hit the wall at the moment and needed to walk away for a bit. working on 2d histogram stuff now... which i have more questions on.

etadobson commented 7 years ago

message from @imagejan on gitter: "it seems that JEditorPane only has a very limited CSS support (http://stackoverflow.com/a/19758631/1919049), so you won't be able to use word-wrap, I'm afraid."