code cleanup
authorNiki Roo <niki@nikiroo.be>
Fri, 22 Mar 2019 08:33:26 +0000 (09:33 +0100)
committerNiki Roo <niki@nikiroo.be>
Fri, 22 Mar 2019 08:33:26 +0000 (09:33 +0100)
src/be/nikiroo/fanfix/reader/ui/GuiReaderCoverImager.java

index 0f6d0b6a8b485c13bee71cad785df2b9f79094f6..0bbf82eb47c29dcaab4a4a3fdee38cf9a995e7c3 100644 (file)
@@ -120,11 +120,25 @@ class GuiReaderCoverImager {
         * 
         * @param lib
         *            the library the meta comes from
-        * @param info
+        * @param meta
         *            the {@link MetaData}
         * 
         * @return the icon
         */
+       static public ImageIcon generateCoverIcon(BasicLibrary lib, MetaData meta) {
+               return generateCoverIcon(lib, GuiReaderBookInfo.fromMeta(meta));
+       }
+
+       /**
+        * Generate a cover icon based upon the given {@link GuiReaderBookInfo}.
+        * 
+        * @param lib
+        *            the library the meta comes from
+        * @param info
+        *            the {@link GuiReaderBookInfo}
+        * 
+        * @return the icon
+        */
        static public ImageIcon generateCoverIcon(BasicLibrary lib,
                        GuiReaderBookInfo info) {
                BufferedImage resizedImage = null;