Package csa.jportal.match.display

Examples of csa.jportal.match.display.CardListPanel


    private void setBlockerDeck()
    {
        jPanelBlockerDisplay.removeAll();

        blockerPanel = new CardListPanel();

        javax.swing.GroupLayout jPanelBlockerDisplayLayout = new javax.swing.GroupLayout(jPanelBlockerDisplay);
        jPanelBlockerDisplay.setLayout(jPanelBlockerDisplayLayout);
        jPanelBlockerDisplayLayout.setHorizontalGroup(
            jPanelBlockerDisplayLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
View Full Code Here


    private void setAttackerDeck()
    {
        jPanelAttackerDisplay.removeAll();

        attackerPanel = new CardListPanel();

        javax.swing.GroupLayout jPanelAttackerDisplayLayout = new javax.swing.GroupLayout(jPanelAttackerDisplay);
        jPanelAttackerDisplay.setLayout(jPanelAttackerDisplayLayout);
        jPanelAttackerDisplayLayout.setHorizontalGroup(
            jPanelAttackerDisplayLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
View Full Code Here

        for (int i=0; i<simList.size(); i++)
        {
            list.addCard(simList.getCard(i).getCard());
        }

        final CardListPanel listDisplay = new csa.jportal.match.display.CardListPanel();

        listDisplay.addPlayerEventListener(new DisplayEventListener()
        {
            @Override
            public void displayEventOccurred(DisplayEvent e)
            {
                //  if rigth click, than show info of current card
                if (e.mMessageType == MOUSE_LEFTRELEASED_CARD)
                {
                    Card card = e.mCard;
                    for (int i=0; i < simList2.size(); i++)
                    {
                        if (card.getUniqueID().equals(simList2.getCard(i).getCard().getUniqueID()))
                        {
                            CardSim sim = simList2.getCard(i);
                            showSimCardInfo(sim);
                            break;
                        }
                    }
                }
            }
        });



        listDisplay.setShowCards(true);
        listDisplay.setOwnScale(true, 80);
        listDisplay.setShowCardCardCount(false);
        listDisplay.setSinglePackView(false);
        listDisplay.setPreferredSize(new Dimension(100, 285));
//        listDisplay.setMyPrefferedSize(jPanelvMatchPanel.getSize().width,jPanelvMatchPanel.getSize().height);
        listDisplay.setMyPrefferedSize(jPanelvMatchPanel.getSize().width,285);

        listDisplay.setHand(list);
        listDisplay.scaleChanged();
        jPanelvMatchPanel.add(listDisplay, BorderLayout.CENTER);
        SwingUtilities.invokeLater(new Runnable() {
            public void run()
            {
                jPanelvMatchPanel.invalidate();
View Full Code Here

        {
            list.addCard(simList.getCard(i).getCard());
        }


        final CardListPanel listDisplay = new csa.jportal.match.display.CardListPanel();
        final CardSimList simList2=simList;

        listDisplay.addPlayerEventListener(new DisplayEventListener()
        {
            @Override
            public void displayEventOccurred(DisplayEvent e)
            {
                //  if rigth click, than show info of current card
                if (e.mMessageType == MOUSE_LEFTRELEASED_CARD)
                {
                    Card card = e.mCard;
                    for (int i=0; i < simList2.size(); i++)
                    {
                        if (card.getUniqueID().equals(simList2.getCard(i).getCard().getUniqueID()))
                        {
                            CardSim sim = simList2.getCard(i);
                            showSimCardInfo(sim);
                            break;
                        }
                    }
                }
            }
        });

        listDisplay.setShowCards(true);
        listDisplay.setOwnScale(true, 80);
        listDisplay.setShowCardCardCount(false);
        listDisplay.setSinglePackView(false);
        listDisplay.setPreferredSize(new Dimension(100, 285));
//        listDisplay.setMyPrefferedSize(800,300);

        listDisplay.setMyPrefferedSize(jPanelvMatchPanel.getSize().width,285);

        listDisplay.setHand(list);
        listDisplay.scaleChanged();
        jPanelvMatchPanel.add(listDisplay, BorderLayout.CENTER);
        SwingUtilities.invokeLater(new Runnable() {
            public void run()
            {
                jPanelvMatchPanel.invalidate();
View Full Code Here

    private void jPanelvMatchPanelComponentResized(java.awt.event.ComponentEvent evt)//GEN-FIRST:event_jPanelvMatchPanelComponentResized
    {//GEN-HEADEREND:event_jPanelvMatchPanelComponentResized

        if (jPanelvMatchPanel.getComponents().length == 0 ) return;
        CardListPanel listDisplay = (CardListPanel) jPanelvMatchPanel.getComponents()[0];

        listDisplay.setMyPrefferedSize(jPanelvMatchPanel.getSize().width,285);
        listDisplay.scaleChanged();
    }//GEN-LAST:event_jPanelvMatchPanelComponentResized
View Full Code Here

TOP

Related Classes of csa.jportal.match.display.CardListPanel

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.