forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
607 B
26 lines
607 B
6 years ago
|
package com.fanruan.api.report;
|
||
|
|
||
|
import com.fanruan.api.util.IOKit;
|
||
|
import com.fr.base.Icon;
|
||
|
import com.fr.base.IconManager;
|
||
|
|
||
|
/**
|
||
|
* @author richie
|
||
|
* @version 10.0
|
||
|
* Created by richie on 2019/9/26
|
||
|
* 一些比较杂项的工具类
|
||
|
*/
|
||
|
public class SundryKit {
|
||
|
|
||
|
/**
|
||
|
* 将图标加载到内存中,可以供插件使用
|
||
|
*
|
||
|
* @param name 图标的名字
|
||
|
* @param path 图标的地址
|
||
|
*/
|
||
|
public static void loadToolbarIcon(String name, String path) {
|
||
|
Icon icon = new Icon(name, IOKit.readImage(path));
|
||
|
IconManager.getIconManager().addIcon(icon, true);
|
||
|
}
|
||
|
}
|