Esempio n. 1
0
 private void addCard(CardView card, BigCard bigCard, UUID gameId, boolean drawImage) {
   MageCard cardImg =
       Plugins.getInstance().getMageCard(card, bigCard, cardDimension, gameId, drawImage);
   cards.put(card.getId(), cardImg);
   cardImg.addMouseListener(this);
   add(cardImg);
   cardImg.update(card);
   cards.put(card.getId(), cardImg);
 }
Esempio n. 2
0
 private void showImage(int row) {
   CardView card = view.get(row);
   if (!card.getId().equals(bigCard.getCardId())) {
     if (!MageFrame.isLite()) {
       Image image = Plugins.getInstance().getOriginalImage(card);
       if (image != null && image instanceof BufferedImage) {
         // XXX: scaled to fit width
         bigCard.setCard(card.getId(), EnlargeMode.NORMAL, image, new ArrayList<String>(), false);
       } else {
         drawCardText(card);
       }
     } else {
       drawCardText(card);
     }
   }
 }