ColorUtils.java 文件源码

java
阅读 33 收藏 0 点赞 0 评论 0

项目:n4js 作者:
/** returns {@link Color} based on the provided {@link RGB} color. */
public static Color getColor(RGB rgb) {
    if (!colors.containsKey(rgb)) {
        colors.put(
                new RGB(rgb.red, rgb.green, rgb.blue),
                new Color(Display.getCurrent(), rgb.red, rgb.green, rgb.blue));
    }
    return colors.get(rgb);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号