Package mage.client.util

Examples of mage.client.util.CardViewRarityComparator


        if (cardDimension != null) {
            Rectangle rectangle = new Rectangle(cardDimension.frameWidth, cardDimension.frameHeight);
            Dimension dimension = new Dimension(cardDimension.frameWidth, cardDimension.frameHeight);

            List<CardView> sortedCards = new ArrayList<>(booster.values());
            Collections.sort(sortedCards, new CardViewRarityComparator());
            for (CardView card: sortedCards) {
                MageCard cardImg = Plugins.getInstance().getMageCard(card, bigCard, dimension, null, true);
                cardImg.addMouseListener(this);
                add(cardImg);
                cardImg.update(card);
View Full Code Here


            switch (sortSetting.getSortBy()) {
                case NAME:
                    comparator = new CardViewNameComparator();
                    break;
                case RARITY:
                    comparator = new CardViewRarityComparator();
                    break;
                case COLOR:
                    comparator = new CardViewColorComparator();
                    break;
                case COLOR_DETAILED:
View Full Code Here

TOP

Related Classes of mage.client.util.CardViewRarityComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.