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); } }