X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix_swing%2Fimages%2FIconGenerator.java;h=c8d126a83e1a9cbe1048514085da4abedabda719;hp=780b1bbd050556e1a42cd45cfe97dc3ae5bdb47a;hb=32ed608959c0dec74660388248831976b97e8c56;hpb=e7d4218c344d292a7450a4c18bbcab1e567d8d9a diff --git a/src/be/nikiroo/fanfix_swing/images/IconGenerator.java b/src/be/nikiroo/fanfix_swing/images/IconGenerator.java index 780b1bb..c8d126a 100644 --- a/src/be/nikiroo/fanfix_swing/images/IconGenerator.java +++ b/src/be/nikiroo/fanfix_swing/images/IconGenerator.java @@ -79,14 +79,17 @@ public class IconGenerator { /** * Generate a new image. * - * @param name the name of the resource - * @param size the requested size + * @param name + * the name of the resource + * @param size + * the requested size * * @return the image, or NULL if it does not exist or does not exist at that * size */ static public ImageIcon get(Icon name, Size size) { - String key = String.format("%s-%dx%d.png", name.name(), size.getSize(), size.getSize()); + String key = String.format("%s-%dx%d.png", name.name(), size.getSize(), + size.getSize()); if (!map.containsKey(key)) { map.put(key, generate(key)); } @@ -97,14 +100,16 @@ public class IconGenerator { /** * Generate a new image. * - * @param filename the file name of the resource (no directory) + * @param filename + * the file name of the resource (no directory) * * @return the image, or NULL if it does not exist or does not exist at that * size */ static private ImageIcon generate(String filename) { try { - InputStream in = IOUtils.openResource(IconGenerator.class, filename); + InputStream in = IOUtils.openResource(IconGenerator.class, + filename); if (in != null) { try { return new ImageIcon(IOUtils.toByteArray(in));