Greetings,
I recently needed to display/print a map with vertex dimension below the
minimun defined by OpenJUMP (value 4,  see Change style panel, vertex
dimension).
In my case I had to display points with altitude values on a topographic
map, the value 4 was too big to display these points while 1 or 2 was the
standard.
I gave a look on relative class,
de.latlon.deejump.plugin.style.DeeRenderingStylePanel.

from line 530
method *sizeFromSlider(int i)* defines the dimension of the vertex
method *sizeToSlider(int i) * get the size from projet and define it in the
slider:



*  private int sizeFromSlider(int i) {        return
(int)(Math.rint(Math.pow(1.6, ((double)i)/10.0))) + 3;    }*



* private int sizeToSlider(int i) {        return (int) Math.rint(10 *
Math.log(((double) i - 3)) / Math.log(1.6));    }*

if the integer 3 (see bold font in both method) is changed to 0



* private int sizeFromSlider(int i) {        return
(int)(Math.rint(Math.pow(1.6, ((double)i)/10.0))) + 0;    }*

 private int sizeToSlider(int i) {
        return (int) Math.rint(10 * Math.log(((double) i -* 0*)) /
Math.log(1.6));
    }

the slider that control vertex dimesion allows a minimun vertex dimension
to  value 1.
Maximun dimension changes form 113 to 110.

My proposal is to change apply this change on OpenJUMP. Objections can be
on reducing minimun size from 113 to 110, if ever used.

Best regards
Peppe
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to