From 231906701e8cf5b00058e23e6a666a2f9a3e566e Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Thu, 18 Jun 2015 18:11:31 +0200 Subject: GUI is under way, 1.0 release --- src/eu/equalparts/cardbase/gui/CardImageView.java | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/eu/equalparts/cardbase/gui/CardImageView.java (limited to 'src/eu/equalparts/cardbase/gui/CardImageView.java') diff --git a/src/eu/equalparts/cardbase/gui/CardImageView.java b/src/eu/equalparts/cardbase/gui/CardImageView.java deleted file mode 100644 index 7c79c6a..0000000 --- a/src/eu/equalparts/cardbase/gui/CardImageView.java +++ /dev/null @@ -1,18 +0,0 @@ -package eu.equalparts.cardbase.gui; - -import eu.equalparts.cardbase.data.Card; -import javafx.scene.image.ImageView; - -public class CardImageView extends ImageView { - - private static final String BASE_IMG_URL = "http://magiccards.info/scans/en/"; - - public CardImageView(Card card) { - super(makeUrl(card)); - } - - public static String makeUrl(Card card) { - return BASE_IMG_URL + card.imageCode + "/" + card.number + ".jpg"; - } - -} -- cgit v1.2.3