Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-16 Thread Rahkonen Jukka (MML)
Hi,

I tried every tool in the editing toolbox and I confirm that the hotspot is 
right for them all. Tested on Windows with 
OpenJUMP-20211216-r5008(3a313a3)-PLUS and OpenJDK 11.0.13 (amd64).

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de  
Lähetetty: torstai 16. joulukuuta 2021 14.33
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Cursor hotspot location error with high resolution

hey Jukka,

On 15.12.2021 19:15, Rahkonen Jukka (MML) wrote:
> The digitizing tool (the pen) works now without any additional Windows 
> configurations. Other tools, as you guessed, not. For example the Remove 
> vertex tool.

please test the latest snapshot wrt. hotspot location. at least in theory all 
cursor tools should now scale the hotspot location appropriately.

..sunny regards ede


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-16 Thread edgar . soldin
hey Jukka,

On 15.12.2021 19:15, Rahkonen Jukka (MML) wrote:
> The digitizing tool (the pen) works now without any additional Windows 
> configurations. Other tools, as you guessed, not. For example the Remove 
> vertex tool.

please test the latest snapshot wrt. hotspot location. at least in theory all 
cursor tools should now scale the hotspot location appropriately.

..sunny regards ede


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-16 Thread edgar . soldin
On 15.12.2021 19:15, Rahkonen Jukka (MML) wrote:
> The digitizing tool (the pen) works now without any additional Windows 
> configurations.

hey Jukka,

would you mind running the snapshot again, switching tools and copy and paste 
the last log lines? there should be two lines
[INFO] Cursor resized to ...
[INFO] Hotspot now ...

just interested in the new size. thanks .. ede


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-15 Thread edgar . soldin

By the same it seems that the keyboard shortcuts (Shift, Ctrl, Alt...) stopped 
working.


just after the patch or before already? ..ede

On 15.12.2021 19:15, Rahkonen Jukka (MML) wrote:

Hi,

The digitizing tool (the pen) works now without any additional Windows 
configurations. Other tools, as you guessed, not. For example the Remove vertex 
tool. By the same it seems that the keyboard shortcuts (Shift, Ctrl, Alt...) 
stopped working.

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de 
Lähetetty: keskiviikko 15. joulukuuta 2021 16.44
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Cursor hotspot location error with high resolution

hey Jukka,

can you try the OJ2 snapshot from just now? tried to fix up at least 
FeatureDrawingUtil. very likely other CursorTools are affected too.

..ede

On 15.12.2021 10:46, edgar.sol...@web.de wrote:

hmm,

then it might be this bug
https://bugs.openjdk.java.net/browse/JDK-8238734?jql=labels%20%3D%20hi
dpi

supposedly we can work around it, let me see if i can wing something..
sunny regards ede

On 15.12.2021 07:53, Rahkonen Jukka (MML) wrote:

Hi Ede,

This issue happens both with jre8 and jre11. Even  jre11 shows the menu texts 
and tool icons sharper the digitizing pen and other cursor tools appear like 
overscaled and the hotspot is not where it is supposed to be.

Funny thing was that I could not take a screenshot about the tool icon 
appearance with the Windows tool. When I used the capturing tool the the OJ 
digitizing pen cursor icon was changed into a small and sharp pen. Obviously 
Windows is managing cursor icons in some special way. I wonder what would 
happen if we had 64x64 pixels versions of the icons, would Windows still try to 
rescale them.

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de 
Lähetetty: tiistai 14. joulukuuta 2021 22.38
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Cursor hotspot location error with high
resolution

hey Jukka,

assuming you are still using some java8 jre. it reads like java8 is
buggy in this regard
https://superuser.com/questions/988379/how-do-i-run-java-apps-upscale
d-on-a-high-dpi-display

could you try using java11 (because lts) or at least java9 and check
if the error without the workaround setting persists? .. ede

On 14.12.2021 20:27, Rahkonen Jukka (MML) wrote:

Hi,

I managed to get the digitizing tool usable by adjusting the display settings.

   1. Right click the OpenJUMP.exe icon
   2.  From Compability tab select “Change high DPI settings  3.
Select High DPI scaling override, check the box, and from the
Scaling performed by drop down menu select System

With these settings OpenJUMP can be started from the OpenJUMP.exe icon and 
editing tools are usable. The icons are tiny but they hit the correct place. 
The settings are not applied when OJ is started directly from oj_windows.bat.

This document helped me
https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/deskto
p/
fixing-blurry-text-in-windows-for-it-professionals?view=windows-11
<https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/deskt
op
/fixing-blurry-text-in-windows-for-it-professionals?view=windows-11>

-Jukka Rahkonen-

*Lähettäjä:*Rahkonen Jukka (MML)
*Lähetetty:* maanantai 13. joulukuuta 2021 22.41
*Vastaanottaja:* jump-pilot-devel@lists.sourceforge.net
*Aihe:* Cursor hotspot location error with high resolution

Hi,

I hope the video is not too big as an attachment. With two different laptops 
running Windows 10 it is impossible to digitize when the screen resolution is 
the default 1920x1080. The pen icon is then rather big, with low resolution, 
and the hotspot is not at the tooltip.  The tool icon is small and sharp and 
usable when the resolution is 1280x1024, but my computer generally is not so 
useful with that resolution.

I tried to read the source code and found
https://github.com/openjump-gis/openjump/blob/185dc45541774316bca117
56
50d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool
/e
diting/FeatureDrawingUtil.java#L240
<https://github.com/openjump-gis/openjump/blob/185dc45541774316bca11
75
650d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortoo
l/ editing/FeatureDrawingUtil.java#L240>

@Override

public Cursor getCursor() {

if (Toolkit.getDefaultToolkit().getBestCursorSize(32, 32)


.equals(new Dimension(0, 0))) {


return Cursor.getDefaultCursor();

       }

       return
Toolkit.getDefaultToolkit().createCustomCursor(


IconLoader.icon("Pen.gif").getImage(),


new java.awt.Point(1, 31), drawFeatureTool.getName());

I wonder if the BestCursorSize makes something not so good when the screen 
resolution is high.

-Jukka Rahkonen-



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourcefo

Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-15 Thread Rahkonen Jukka (MML)
Hi,

The digitizing tool (the pen) works now without any additional Windows 
configurations. Other tools, as you guessed, not. For example the Remove vertex 
tool. By the same it seems that the keyboard shortcuts (Shift, Ctrl, Alt...) 
stopped working.

-Jukka-

-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de  
Lähetetty: keskiviikko 15. joulukuuta 2021 16.44
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Cursor hotspot location error with high resolution

hey Jukka,

can you try the OJ2 snapshot from just now? tried to fix up at least 
FeatureDrawingUtil. very likely other CursorTools are affected too.

..ede

On 15.12.2021 10:46, edgar.sol...@web.de wrote:
> hmm,
>
> then it might be this bug
> https://bugs.openjdk.java.net/browse/JDK-8238734?jql=labels%20%3D%20hi
> dpi
>
> supposedly we can work around it, let me see if i can wing something.. 
> sunny regards ede
>
> On 15.12.2021 07:53, Rahkonen Jukka (MML) wrote:
>> Hi Ede,
>>
>> This issue happens both with jre8 and jre11. Even  jre11 shows the menu 
>> texts and tool icons sharper the digitizing pen and other cursor tools 
>> appear like overscaled and the hotspot is not where it is supposed to be.
>>
>> Funny thing was that I could not take a screenshot about the tool icon 
>> appearance with the Windows tool. When I used the capturing tool the the OJ 
>> digitizing pen cursor icon was changed into a small and sharp pen. Obviously 
>> Windows is managing cursor icons in some special way. I wonder what would 
>> happen if we had 64x64 pixels versions of the icons, would Windows still try 
>> to rescale them.
>>
>> -Jukka-
>>
>>
>> -Alkuperäinen viesti-
>> Lähettäjä: edgar.sol...@web.de 
>> Lähetetty: tiistai 14. joulukuuta 2021 22.38
>> Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
>> Aihe: Re: [JPP-Devel] Cursor hotspot location error with high 
>> resolution
>>
>> hey Jukka,
>>
>> assuming you are still using some java8 jre. it reads like java8 is 
>> buggy in this regard 
>> https://superuser.com/questions/988379/how-do-i-run-java-apps-upscale
>> d-on-a-high-dpi-display
>>
>> could you try using java11 (because lts) or at least java9 and check 
>> if the error without the workaround setting persists? .. ede
>>
>> On 14.12.2021 20:27, Rahkonen Jukka (MML) wrote:
>>> Hi,
>>>
>>> I managed to get the digitizing tool usable by adjusting the display 
>>> settings.
>>>
>>>   1. Right click the OpenJUMP.exe icon
>>>   2.  From Compability tab select “Change high DPI settings  3. 
>>> Select High DPI scaling override, check the box, and from the 
>>> Scaling performed by drop down menu select System
>>>
>>> With these settings OpenJUMP can be started from the OpenJUMP.exe icon and 
>>> editing tools are usable. The icons are tiny but they hit the correct 
>>> place. The settings are not applied when OJ is started directly from 
>>> oj_windows.bat.
>>>
>>> This document helped me
>>> https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/deskto
>>> p/
>>> fixing-blurry-text-in-windows-for-it-professionals?view=windows-11
>>> <https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/deskt
>>> op 
>>> /fixing-blurry-text-in-windows-for-it-professionals?view=windows-11>
>>>
>>> -Jukka Rahkonen-
>>>
>>> *Lähettäjä:*Rahkonen Jukka (MML)
>>> *Lähetetty:* maanantai 13. joulukuuta 2021 22.41
>>> *Vastaanottaja:* jump-pilot-devel@lists.sourceforge.net
>>> *Aihe:* Cursor hotspot location error with high resolution
>>>
>>> Hi,
>>>
>>> I hope the video is not too big as an attachment. With two different 
>>> laptops running Windows 10 it is impossible to digitize when the screen 
>>> resolution is the default 1920x1080. The pen icon is then rather big, with 
>>> low resolution, and the hotspot is not at the tooltip.  The tool icon is 
>>> small and sharp and usable when the resolution is 1280x1024, but my 
>>> computer generally is not so useful with that resolution.
>>>
>>> I tried to read the source code and found
>>> https://github.com/openjump-gis/openjump/blob/185dc45541774316bca117
>>> 56 
>>> 50d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool
>>> /e
>>> diting/FeatureDrawingUtil.java#L240
>>> <https://github.com/openjump-gis/openjump/blob/185dc45541774316bca11
>>> 75 
>>> 650d8913a14a2b1be/src/com/vividsolu

Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-15 Thread edgar . soldin
hey Jukka,

can you try the OJ2 snapshot from just now? tried to fix up at least 
FeatureDrawingUtil. very likely other CursorTools are affected too.

..ede

On 15.12.2021 10:46, edgar.sol...@web.de wrote:
> hmm,
>
> then it might be this bug
> https://bugs.openjdk.java.net/browse/JDK-8238734?jql=labels%20%3D%20hidpi
>
> supposedly we can work around it, let me see if i can wing something.. sunny 
> regards ede
>
> On 15.12.2021 07:53, Rahkonen Jukka (MML) wrote:
>> Hi Ede,
>>
>> This issue happens both with jre8 and jre11. Even  jre11 shows the menu 
>> texts and tool icons sharper the digitizing pen and other cursor tools 
>> appear like overscaled and the hotspot is not where it is supposed to be.
>>
>> Funny thing was that I could not take a screenshot about the tool icon 
>> appearance with the Windows tool. When I used the capturing tool the the OJ 
>> digitizing pen cursor icon was changed into a small and sharp pen. Obviously 
>> Windows is managing cursor icons in some special way. I wonder what would 
>> happen if we had 64x64 pixels versions of the icons, would Windows still try 
>> to rescale them.
>>
>> -Jukka-
>>
>>
>> -Alkuperäinen viesti-
>> Lähettäjä: edgar.sol...@web.de 
>> Lähetetty: tiistai 14. joulukuuta 2021 22.38
>> Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
>> Aihe: Re: [JPP-Devel] Cursor hotspot location error with high resolution
>>
>> hey Jukka,
>>
>> assuming you are still using some java8 jre. it reads like java8 is buggy in 
>> this regard 
>> https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display
>>
>> could you try using java11 (because lts) or at least java9 and check if the 
>> error without the workaround setting persists? .. ede
>>
>> On 14.12.2021 20:27, Rahkonen Jukka (MML) wrote:
>>> Hi,
>>>
>>> I managed to get the digitizing tool usable by adjusting the display 
>>> settings.
>>>
>>>   1. Right click the OpenJUMP.exe icon
>>>   2.  From Compability tab select “Change high DPI settings  3. Select
>>> High DPI scaling override, check the box, and from the Scaling
>>> performed by drop down menu select System
>>>
>>> With these settings OpenJUMP can be started from the OpenJUMP.exe icon and 
>>> editing tools are usable. The icons are tiny but they hit the correct 
>>> place. The settings are not applied when OJ is started directly from 
>>> oj_windows.bat.
>>>
>>> This document helped me
>>> https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop/
>>> fixing-blurry-text-in-windows-for-it-professionals?view=windows-11
>>> <https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop
>>> /fixing-blurry-text-in-windows-for-it-professionals?view=windows-11>
>>>
>>> -Jukka Rahkonen-
>>>
>>> *Lähettäjä:*Rahkonen Jukka (MML)
>>> *Lähetetty:* maanantai 13. joulukuuta 2021 22.41
>>> *Vastaanottaja:* jump-pilot-devel@lists.sourceforge.net
>>> *Aihe:* Cursor hotspot location error with high resolution
>>>
>>> Hi,
>>>
>>> I hope the video is not too big as an attachment. With two different 
>>> laptops running Windows 10 it is impossible to digitize when the screen 
>>> resolution is the default 1920x1080. The pen icon is then rather big, with 
>>> low resolution, and the hotspot is not at the tooltip.  The tool icon is 
>>> small and sharp and usable when the resolution is 1280x1024, but my 
>>> computer generally is not so useful with that resolution.
>>>
>>> I tried to read the source code and found
>>> https://github.com/openjump-gis/openjump/blob/185dc45541774316bca11756
>>> 50d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/e
>>> diting/FeatureDrawingUtil.java#L240
>>> <https://github.com/openjump-gis/openjump/blob/185dc45541774316bca1175
>>> 650d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/
>>> editing/FeatureDrawingUtil.java#L240>
>>>
>>> @Override
>>>
>>> public Cursor getCursor() {
>>>
>>> if (Toolkit.getDefaultToolkit().getBestCursorSize(32, 32)
>>>
>>>
>>> .equals(new Dimension(0, 0))) {
>>>
>>>
>>> return Cursor.getDefaultCursor();
>>>
>>>       }
>>>
>>>       return
>>> Toolkit.getDe

Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-15 Thread edgar . soldin

hmm,

then it might be this bug
https://bugs.openjdk.java.net/browse/JDK-8238734?jql=labels%20%3D%20hidpi

supposedly we can work around it, let me see if i can wing something.. sunny 
regards ede

On 15.12.2021 07:53, Rahkonen Jukka (MML) wrote:

Hi Ede,

This issue happens both with jre8 and jre11. Even  jre11 shows the menu texts 
and tool icons sharper the digitizing pen and other cursor tools appear like 
overscaled and the hotspot is not where it is supposed to be.

Funny thing was that I could not take a screenshot about the tool icon 
appearance with the Windows tool. When I used the capturing tool the the OJ 
digitizing pen cursor icon was changed into a small and sharp pen. Obviously 
Windows is managing cursor icons in some special way. I wonder what would 
happen if we had 64x64 pixels versions of the icons, would Windows still try to 
rescale them.

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de 
Lähetetty: tiistai 14. joulukuuta 2021 22.38
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Cursor hotspot location error with high resolution

hey Jukka,

assuming you are still using some java8 jre. it reads like java8 is buggy in 
this regard 
https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display

could you try using java11 (because lts) or at least java9 and check if the 
error without the workaround setting persists? .. ede

On 14.12.2021 20:27, Rahkonen Jukka (MML) wrote:

Hi,

I managed to get the digitizing tool usable by adjusting the display settings.

  1. Right click the OpenJUMP.exe icon
  2.  From Compability tab select “Change high DPI settings  3. Select
High DPI scaling override, check the box, and from the Scaling
performed by drop down menu select System

With these settings OpenJUMP can be started from the OpenJUMP.exe icon and 
editing tools are usable. The icons are tiny but they hit the correct place. 
The settings are not applied when OJ is started directly from oj_windows.bat.

This document helped me
https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop/
fixing-blurry-text-in-windows-for-it-professionals?view=windows-11
<https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop
/fixing-blurry-text-in-windows-for-it-professionals?view=windows-11>

-Jukka Rahkonen-

*Lähettäjä:*Rahkonen Jukka (MML)
*Lähetetty:* maanantai 13. joulukuuta 2021 22.41
*Vastaanottaja:* jump-pilot-devel@lists.sourceforge.net
*Aihe:* Cursor hotspot location error with high resolution

Hi,

I hope the video is not too big as an attachment. With two different laptops 
running Windows 10 it is impossible to digitize when the screen resolution is 
the default 1920x1080. The pen icon is then rather big, with low resolution, 
and the hotspot is not at the tooltip.  The tool icon is small and sharp and 
usable when the resolution is 1280x1024, but my computer generally is not so 
useful with that resolution.

I tried to read the source code and found
https://github.com/openjump-gis/openjump/blob/185dc45541774316bca11756
50d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/e
diting/FeatureDrawingUtil.java#L240
<https://github.com/openjump-gis/openjump/blob/185dc45541774316bca1175
650d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/
editing/FeatureDrawingUtil.java#L240>

@Override

public Cursor getCursor() {

if (Toolkit.getDefaultToolkit().getBestCursorSize(32, 32)


.equals(new Dimension(0, 0))) {


return Cursor.getDefaultCursor();

      }

      return
Toolkit.getDefaultToolkit().createCustomCursor(


IconLoader.icon("Pen.gif").getImage(),


new java.awt.Point(1, 31), drawFeatureTool.getName());

I wonder if the BestCursorSize makes something not so good when the screen 
resolution is high.

-Jukka Rahkonen-



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel





___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-14 Thread Rahkonen Jukka (MML)
Hi Ede,

This issue happens both with jre8 and jre11. Even  jre11 shows the menu texts 
and tool icons sharper the digitizing pen and other cursor tools appear like 
overscaled and the hotspot is not where it is supposed to be.

Funny thing was that I could not take a screenshot about the tool icon 
appearance with the Windows tool. When I used the capturing tool the the OJ 
digitizing pen cursor icon was changed into a small and sharp pen. Obviously 
Windows is managing cursor icons in some special way. I wonder what would 
happen if we had 64x64 pixels versions of the icons, would Windows still try to 
rescale them.

-Jukka-


-Alkuperäinen viesti-
Lähettäjä: edgar.sol...@web.de  
Lähetetty: tiistai 14. joulukuuta 2021 22.38
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Re: [JPP-Devel] Cursor hotspot location error with high resolution

hey Jukka,

assuming you are still using some java8 jre. it reads like java8 is buggy in 
this regard 
https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display

could you try using java11 (because lts) or at least java9 and check if the 
error without the workaround setting persists? .. ede

On 14.12.2021 20:27, Rahkonen Jukka (MML) wrote:
> Hi,
> 
> I managed to get the digitizing tool usable by adjusting the display settings.
> 
>  1. Right click the OpenJUMP.exe icon
>  2.  From Compability tab select “Change high DPI settings  3. Select 
> High DPI scaling override, check the box, and from the Scaling 
> performed by drop down menu select System
> 
> With these settings OpenJUMP can be started from the OpenJUMP.exe icon and 
> editing tools are usable. The icons are tiny but they hit the correct place. 
> The settings are not applied when OJ is started directly from oj_windows.bat.
> 
> This document helped me 
> https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop/
> fixing-blurry-text-in-windows-for-it-professionals?view=windows-11 
> <https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop
> /fixing-blurry-text-in-windows-for-it-professionals?view=windows-11>
> 
> -Jukka Rahkonen-
> 
> *Lähettäjä:*Rahkonen Jukka (MML)
> *Lähetetty:* maanantai 13. joulukuuta 2021 22.41
> *Vastaanottaja:* jump-pilot-devel@lists.sourceforge.net
> *Aihe:* Cursor hotspot location error with high resolution
> 
> Hi,
> 
> I hope the video is not too big as an attachment. With two different laptops 
> running Windows 10 it is impossible to digitize when the screen resolution is 
> the default 1920x1080. The pen icon is then rather big, with low resolution, 
> and the hotspot is not at the tooltip.  The tool icon is small and sharp and 
> usable when the resolution is 1280x1024, but my computer generally is not so 
> useful with that resolution.
> 
> I tried to read the source code and found 
> https://github.com/openjump-gis/openjump/blob/185dc45541774316bca11756
> 50d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/e
> diting/FeatureDrawingUtil.java#L240 
> <https://github.com/openjump-gis/openjump/blob/185dc45541774316bca1175
> 650d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/
> editing/FeatureDrawingUtil.java#L240>
> 
> @Override
> 
> public Cursor getCursor() {
> 
> if (Toolkit.getDefaultToolkit().getBestCursorSize(32, 32)
> 
>       
>  
> .equals(new Dimension(0, 0))) {
> 
>   
>  
> return Cursor.getDefaultCursor();
> 
>      }
> 
>      return 
> Toolkit.getDefaultToolkit().createCustomCursor(
> 
>       
>  
> IconLoader.icon("Pen.gif").getImage(),
> 
>       
>  
> new java.awt.Point(1, 31), drawFeatureTool.getName());
> 
> I wonder if the BestCursorSize makes something not so good when the screen 
> resolution is high.
> 
> -Jukka Rahkonen-
> 
> 
> 
> ___
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
> 


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-14 Thread edgar . soldin

hey Jukka,

assuming you are still using some java8 jre. it reads like java8 is buggy in 
this regard
https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display

could you try using java11 (because lts) or at least java9 and check if the 
error without the workaround setting persists? .. ede

On 14.12.2021 20:27, Rahkonen Jukka (MML) wrote:

Hi,

I managed to get the digitizing tool usable by adjusting the display settings.

 1. Right click the OpenJUMP.exe icon
 2.  From Compability tab select “Change high DPI settings
 3. Select High DPI scaling override, check the box, and from the Scaling 
performed by drop down menu select System

With these settings OpenJUMP can be started from the OpenJUMP.exe icon and 
editing tools are usable. The icons are tiny but they hit the correct place. 
The settings are not applied when OJ is started directly from oj_windows.bat.

This document helped me 
https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop/fixing-blurry-text-in-windows-for-it-professionals?view=windows-11
 


-Jukka Rahkonen-

*Lähettäjä:*Rahkonen Jukka (MML)
*Lähetetty:* maanantai 13. joulukuuta 2021 22.41
*Vastaanottaja:* jump-pilot-devel@lists.sourceforge.net
*Aihe:* Cursor hotspot location error with high resolution

Hi,

I hope the video is not too big as an attachment. With two different laptops 
running Windows 10 it is impossible to digitize when the screen resolution is 
the default 1920x1080. The pen icon is then rather big, with low resolution, 
and the hotspot is not at the tooltip.  The tool icon is small and sharp and 
usable when the resolution is 1280x1024, but my computer generally is not so 
useful with that resolution.

I tried to read the source code and found 
https://github.com/openjump-gis/openjump/blob/185dc45541774316bca1175650d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/FeatureDrawingUtil.java#L240
 


@Override

public Cursor getCursor() {

if (Toolkit.getDefaultToolkit().getBestCursorSize(32, 32)

       
.equals(new Dimension(0, 0))) {

   
return Cursor.getDefaultCursor();

     }

     return 
Toolkit.getDefaultToolkit().createCustomCursor(

       
IconLoader.icon("Pen.gif").getImage(),

       
new java.awt.Point(1, 31), drawFeatureTool.getName());

I wonder if the BestCursorSize makes something not so good when the screen 
resolution is high.

-Jukka Rahkonen-



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel




___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


Re: [JPP-Devel] Cursor hotspot location error with high resolution

2021-12-14 Thread Rahkonen Jukka (MML)
Hi,

I managed to get the digitizing tool usable by adjusting the display settings.


  1.  Right click the OpenJUMP.exe icon
  2.  From Compability tab select "Change high DPI settings
  3.  Select High DPI scaling override, check the box, and from the Scaling 
performed by drop down menu select System

With these settings OpenJUMP can be started from the OpenJUMP.exe icon and 
editing tools are usable. The icons are tiny but they hit the correct place. 
The settings are not applied when OJ is started directly from oj_windows.bat.

This document helped me 
https://docs.microsoft.com/fi-fi/windows-hardware/manufacture/desktop/fixing-blurry-text-in-windows-for-it-professionals?view=windows-11

-Jukka Rahkonen-

Lähettäjä: Rahkonen Jukka (MML)
Lähetetty: maanantai 13. joulukuuta 2021 22.41
Vastaanottaja: jump-pilot-devel@lists.sourceforge.net
Aihe: Cursor hotspot location error with high resolution

Hi,

I hope the video is not too big as an attachment. With two different laptops 
running Windows 10 it is impossible to digitize when the screen resolution is 
the default 1920x1080. The pen icon is then rather big, with low resolution, 
and the hotspot is not at the tooltip.  The tool icon is small and sharp and 
usable when the resolution is 1280x1024, but my computer generally is not so 
useful with that resolution.

I tried to read the source code and found 
https://github.com/openjump-gis/openjump/blob/185dc45541774316bca1175650d8913a14a2b1be/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/FeatureDrawingUtil.java#L240

@Override
public Cursor getCursor() {
if (Toolkit.getDefaultToolkit().getBestCursorSize(32, 32)
  
.equals(new Dimension(0, 0))) {
  
return Cursor.getDefaultCursor();
}
return 
Toolkit.getDefaultToolkit().createCustomCursor(
  
IconLoader.icon("Pen.gif").getImage(),
  
new java.awt.Point(1, 31), drawFeatureTool.getName());

I wonder if the BestCursorSize makes something not so good when the screen 
resolution is high.

-Jukka Rahkonen-
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel