ch.aplu.jcardgame
Class CardAdapter

java.lang.Object
  extended by ch.aplu.jcardgame.CardAdapter
All Implemented Interfaces:
CardListener

public class CardAdapter
extends java.lang.Object
implements CardListener

Empty implementation of callback methods called for card events.


Constructor Summary
CardAdapter()
           
 
Method Summary
 void atTarget(Card card, Location targetLocation)
          Triggered when a card arrives a the target after a card transfer.
 void leftClicked(Card card)
          Triggered when a card is left clicked.
 void leftDoubleClicked(Card card)
          Triggered when a card is left double-clicked.
 void leftPressed(Card card)
          Triggered when a card is left pressed.
 void leftReleased(Card card)
          Triggered when a card is left released.
 void rightClicked(Card card)
          Triggered when a card is right clicked.
 void rightDoubleClicked(Card card)
          Triggered when a card is right double-clicked.
 void rightPressed(Card card)
          Triggered when a card is right pressed.
 void rightReleased(Card card)
          Triggered when a card is right released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CardAdapter

public CardAdapter()
Method Detail

leftPressed

public void leftPressed(Card card)
Triggered when a card is left pressed.

Specified by:
leftPressed in interface CardListener

leftReleased

public void leftReleased(Card card)
Triggered when a card is left released.

Specified by:
leftReleased in interface CardListener

leftClicked

public void leftClicked(Card card)
Triggered when a card is left clicked.

Specified by:
leftClicked in interface CardListener

leftDoubleClicked

public void leftDoubleClicked(Card card)
Triggered when a card is left double-clicked.

Specified by:
leftDoubleClicked in interface CardListener

rightPressed

public void rightPressed(Card card)
Triggered when a card is right pressed.

Specified by:
rightPressed in interface CardListener

rightReleased

public void rightReleased(Card card)
Triggered when a card is right released.

Specified by:
rightReleased in interface CardListener

rightClicked

public void rightClicked(Card card)
Triggered when a card is right clicked.

Specified by:
rightClicked in interface CardListener

rightDoubleClicked

public void rightDoubleClicked(Card card)
Triggered when a card is right double-clicked.

Specified by:
rightDoubleClicked in interface CardListener

atTarget

public void atTarget(Card card,
                     Location targetLocation)
Triggered when a card arrives a the target after a card transfer.

Specified by:
atTarget in interface CardListener