On Thu, 20 May 2021 08:07:48 GMT, Alexander Zuev <kiz...@openjdk.org> wrote:

>> src/java.desktop/share/classes/javax/swing/filechooser/FileSystemView.java 
>> line 275:
>> 
>>> 273:     *
>>> 274:     * @param f a {@code File} object
>>> 275:     * @param size width and height of the icon in virtual pixels
>> 
>> What are the "virtual pixels"? I remember we refer to something similar by 
>> the point in the "user space coordinate system" Or probably we use the 
>> virtual pixels somewhere?
>
>> What are the "virtual pixels"? I remember we refer to something similar by 
>> the point in the "user space coordinate system" Or probably we use the 
>> virtual pixels somewhere?
> 
> It is to say that the sizes are given in the same pixels as other components 
> in the container and are subject to be rendered with different resolution 
> based on the display scaling factor with preserving of relative sizes and 
> proportions. The same terminology is used i.e. in SurfaceData.

SurfaceData is not a public class, do we use this term somewhere in the spec? 
If not then it will be better to use size/points in the user space coordinate 
system, it is used already in the java2d.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2875

Reply via email to