Package mage.view

Examples of mage.view.CardsView


                }               
            }
            if (currentView instanceof CardGrid && filteredCards.size() > CardGrid.MAX_IMAGES) {
                this.toggleViewMode();
            }
            this.currentView.loadCards(new CardsView(filteredCards), sortSetting, bigCard, null, false);
            this.cardCount.setText(String.valueOf(filteredCards.size()));
        }
        finally {
            setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
        }
View Full Code Here


        this.deckList.setDeckEditorMode(mode);
        this.sideboardList.setDeckEditorMode(mode);
    }
   
    public void loadDeck(Deck deck, BigCard bigCard) {
        deckList.loadCards(new CardsView(deck.getCards()), bigCard, null);
        if (sideboardList.isVisible()) {
            sideboardList.loadCards(new CardsView(deck.getSideboard()), bigCard, null);
        }
    }
View Full Code Here

        }
    }

    private void redrawCards() {
        if (cards == null) {
            cards = new CardsView();
        }
           currentView.loadCards(cards, sortSetting, bigCard, gameId);
    }
View Full Code Here

                    continue;
                }

                PlayerView view = panel.getPlayerPanel().getPlayer();
                if (view != null) {
                    CardsView graveyard = view.getGraveyard();
                    if (graveyard.containsKey(uuid)) {
                        p = MageFrame.getGame(data.gameId).getPlayers().get(view.getPlayerId());
                        if (p != null) {
                            Point target = p.getLocationOnScreen();
                            target.translate(-parentPoint.x, -parentPoint.y);
                            int yOffset = p.isSmallMode() ? (PlayAreaPanel.PANEL_HEIGHT - PlayAreaPanel.PANEL_HEIGHT_SMALL) : 0;
View Full Code Here

TOP

Related Classes of mage.view.CardsView

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.