Hi Philippe and everyone,
to quote Wayne:
> The Plot setIntervals(), getCurrentFont() and getDefaultFont()
methods > are in the 1.53a daily build.
The daily build also adds a Tools.getNumberFromList(list, key) Java
function, which might be handy for some of you. Example:
Tools.getNumberFromList("value1=1234.5 area=1.2e6, y=37", "area=")
will return 1.2e6.
Note that the "=" must be part of the key String and spaces between the
"=" and the number are not allowed.
Michael
_______________________________________________________________
On 13/04/2020 2:37 pm, CARL Philippe (LBP) wrote:
> Dear all (I guess mostly Michael and Wayne),
> I hope you are all still doing well within these very particular events.
> So within a plot, I would like to change the Font for a
> addText(java.lang.String label, double x, double y)
> method by using the
> setFont(java.awt.Font font)
> method.
> But by doing so, the Font for all the following labels (i.e. xLabel, yLabel,...) will be the new defined one.
> A solution for this would be to have a
> Font getFont() method
> which would able to copy the used Font to apply it again after the use of the addText method.
> Unfortunately as there is a getFont() method within the Plot.java file, it is within the PlotObject class not the Plot one.
> I thank you very in advance for your help on this.
> My best regards,
> Philippe
>
> Philippe CARL
> Laboratoire de Bioimagerie et Pathologies
> UMR 7021 CNRS - Université de Strasbourg
> Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
> Tel : +33(0)3 68 85 42 89
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html