aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/equalparts/cardbase/gui/CardImageView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/eu/equalparts/cardbase/gui/CardImageView.java')
-rw-r--r--src/eu/equalparts/cardbase/gui/CardImageView.java18
1 files changed, 0 insertions, 18 deletions
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";
- }
-
-}