|
|
@ -76,7 +76,10 @@ public class SVGIcon implements Icon { |
|
|
|
} |
|
|
|
} |
|
|
|
BufferedImage image = (BufferedImage) SVGLoader.load(url); |
|
|
|
BufferedImage image = (BufferedImage) SVGLoader.load(url); |
|
|
|
icon = image == null ? IOUtils.readIcon(url) : new SVGIcon(image); |
|
|
|
icon = image == null ? IOUtils.readIcon(url) : new SVGIcon(image); |
|
|
|
iconCache.put(url, icon); |
|
|
|
//只缓存svg图表
|
|
|
|
|
|
|
|
if (image != null){ |
|
|
|
|
|
|
|
iconCache.put(url, icon); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return icon; |
|
|
|
return icon; |
|
|
|
} |
|
|
|
} |
|
|
|