diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-06-18 18:11:31 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-06-18 18:11:31 +0200 |
commit | 231906701e8cf5b00058e23e6a666a2f9a3e566e (patch) | |
tree | 3c28ad82f44dde8439223d353496e7447108c589 /src/eu/equalparts/cardbase/gui/CardImageView.java | |
parent | ff08a196fe98790d78ee7f5b26b9f367f9fa5a68 (diff) |
GUI is under way, 1.0 release
Diffstat (limited to 'src/eu/equalparts/cardbase/gui/CardImageView.java')
-rw-r--r-- | src/eu/equalparts/cardbase/gui/CardImageView.java | 18 |
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"; - } - -} |