forked from fanruan/design
Browse Source
* commit '35713e7eb9cb8243cd6fbeda8c2e3972c1056cca': REPORT-22108 这里写死了,一旦超过了30列就会无法渲染 REPORT-22108 这里写死了,一旦超过了30行就会无法渲染 REPORT-22595【10.0.4设计器】开发者鸣谢,放到启动图左侧下方 fix REPORT-23246 设计器设置纸张颜色然后合并单元格的颜色会变白色 fix REPORT-23246 设计器UI 插入斜线显示不全 REPORT-23494 修改控件名后 直接编辑事件 事件内容不会被保存 REPORT-22806 模板自适应下块还是有叠盖 转专人服务-Winnie REPORT-23486 修复bug以及更改文件夹 REPORT-23578 设计器文件-选项-高级里新加了个通用数据连接管理器,有很多bug,需要屏蔽 REPORT-23570 模版版本管理,gc为负数时应当提示“无可优化文件” REPORT-23486 修复bug以及更改文件夹feature/big-screen
neil
5 years ago
11 changed files with 79 additions and 30 deletions
@ -0,0 +1,36 @@
|
||||
package com.fr.design.utils.gui; |
||||
|
||||
import com.fr.stable.os.OperatingSystem; |
||||
|
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* @author hades |
||||
* @version 10.0 |
||||
* Created by hades on 2019/10/29 |
||||
*/ |
||||
public enum FineDesignScreen { |
||||
|
||||
/** |
||||
* 一个临界dpi |
||||
* 设计器(windows/linux)大于等于该dpi界面ui变得很小 (jdk bug 在jdk9修复: http://openjdk.java.net/jeps/263)
|
||||
*/ |
||||
DPI_144(144); |
||||
|
||||
private int value; |
||||
|
||||
FineDesignScreen(int value) { |
||||
this.value = value; |
||||
} |
||||
|
||||
/** |
||||
* 判断win/linux下的dpi macos不做处理 |
||||
* @return |
||||
*/ |
||||
public static boolean isHighDPI() { |
||||
if (OperatingSystem.isMacos()) { |
||||
return false; |
||||
} |
||||
return Toolkit.getDefaultToolkit().getScreenResolution() >= DPI_144.value; |
||||
} |
||||
} |
Loading…
Reference in new issue