[deck.editor] Switching between card selectors. Displaying cards from the list. --All sets-- option to show all cards at once (appears only in CardTableSelector).

This commit is contained in:
magenoxx 2011-05-11 17:52:16 +04:00
parent 6e3a7ede39
commit f66fd8fc97
11 changed files with 221 additions and 150 deletions

View file

@ -1,6 +1,7 @@
package mage.client.plugins;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
@ -35,4 +36,5 @@ public interface MagePlugins {
void onAddCard(MagePermanent card, int count);
void onRemoveCard(MagePermanent card, int count);
JComponent getCardInfoPane();
BufferedImage getOriginalImage(CardView card);
}

View file

@ -1,6 +1,7 @@
package mage.client.plugins.impl;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.Collection;
import java.util.Map;
@ -190,5 +191,12 @@ public class Plugins implements MagePlugins {
return null;
}
@Override
public BufferedImage getOriginalImage(CardView card) {
if (this.cardPlugin != null) {
return this.cardPlugin.getOriginalImage(card);
}
return null;
}
}