|
|
|
@ -7,8 +7,8 @@ import java.awt.Component;
|
|
|
|
|
import java.awt.Graphics; |
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.concurrent.ConcurrentHashMap; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* SVG转化而来的Icon |
|
|
|
@ -30,7 +30,7 @@ public class SVGIcon implements Icon {
|
|
|
|
|
this.image = image; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static Map<String, Icon> iconCache = new HashMap<>(); |
|
|
|
|
private static Map<String, Icon> iconCache = new ConcurrentHashMap<>(); |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void paintIcon(Component c, Graphics g, int x, int y) { |
|
|
|
|