public class CardAdapter extends java.lang.Object implements CardListener
Constructor and Description |
---|
CardAdapter() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void leftPressed(Card card)
leftPressed
in interface CardListener
public void leftReleased(Card card)
leftReleased
in interface CardListener
public void leftClicked(Card card)
leftClicked
in interface CardListener
public void leftDoubleClicked(Card card)
leftDoubleClicked
in interface CardListener
public void rightPressed(Card card)
rightPressed
in interface CardListener
public void rightReleased(Card card)
rightReleased
in interface CardListener
public void rightClicked(Card card)
rightClicked
in interface CardListener
public void rightDoubleClicked(Card card)
rightDoubleClicked
in interface CardListener
public void atTarget(Card card, Location targetLocation)
atTarget
in interface CardListener