Browse Source

REPORT-42238 【10.0.13】JDK11设计器图标模糊问题优化

No.12: 删除误传代码
persist/11.0
Yvan 4 years ago
parent
commit
ed8b98823c
  1. 62
      designer-base/src/main/java/com/fr/base/svg/IconType.java

62
designer-base/src/main/java/com/fr/base/svg/IconType.java

@ -1,62 +0,0 @@
package com.fr.base.svg;
import com.fr.stable.StringUtils;
/**
* @author Yvan
* @version 10.0
* Created by Yvan on 2020/12/22
*/
public enum IconType {
/**
* png图片转化的Icon
*/
PNG(".png", 0),
/**
* svg图片转化的normalIcon
*/
NORMAL_SVG("_normal", 1),
/**
* SVG图片转化的disabledIcon
*/
DISABLED_SVG("_disabled", 2),
/**
* SVG图片转化的selectedIcon
*/
SELECTED_SVG("_selected", 3);
private String iconType;
private int iconCode;
IconType(String iconType, int iconCode) {
this.iconType = iconType;
this.iconCode = iconCode;
}
public String getIconType() {
return iconType;
}
public void setIconType(String iconType) {
this.iconType = iconType;
}
public int getIconCode() {
return iconCode;
}
public void setIconCode(int iconCode) {
this.iconCode = iconCode;
}
public static String getIconType(int iconCode) {
for (IconType iconType : IconType.values()) {
if (iconType.getIconCode() == iconCode) {
return iconType.getIconType();
}
}
return StringUtils.EMPTY;
}
}
Loading…
Cancel
Save