Java Screen Size getSystemSizeRate()

Here you can find the source of getSystemSizeRate()

Description

get System Size Rate

License

Open Source License

Declaration

public static double getSystemSizeRate() 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.*;

public class Main {
    private static final double DEFAULT_SCREEN_RESOLUTION = 96;

    public static double getSystemSizeRate() {
        return Toolkit.getDefaultToolkit().getScreenResolution() / DEFAULT_SCREEN_RESOLUTION;
    }/*from   ww  w  .  j  a va 2s .  c om*/
}

Related

  1. getMaxSize(Window frame)
  2. getMaxUsableScreenSize()
  3. getMaxWindowSize()
  4. getMinimumCacheSize(int tileSize, double overdrawFactor)
  5. getSizeWithScreen(double xd, double yd)
  6. getWindowActualSize(final Window window)
  7. makeEllipse(double x, double y, double size)
  8. maximizeWindowWithMargin(final Window window, final int margin, final Dimension maxSize)
  9. screenSize()