A B C D F G H I J K L M N O P R S T U V

A

addSolitaireListener(ISolitaireListener) - Static method in class solitaire.GuiCardProxy
Add a listener for every SolitaireEvent generated when some card is clicked.

B

BACK - Static variable in interface solitaire.GuiConstants
Used to retrieve images from CardImageFactory, this is for a card back (turned over).
BACKGROUND - Static variable in interface solitaire.GuiConstants
The green of a solitaire table's background.
BLANK - Static variable in interface solitaire.GuiConstants
Used to retrieve images from CardImageFactory, this is for a blank card.

C

CARD_WIDTH - Static variable in interface solitaire.GuiConstants
Width of displayed card image in pixels.
CardImageFactory - Class in solitaire
Singleton class for retrieving card images.
CLUBS - Static variable in interface solitaire.IGuiCard
The int value for the suit CLUBS, useful in accessing suitPrefixes or for other purposes.

D

deal() - Method in class solitaire.examples.FreecellDemo
 
deal() - Method in class solitaire.examples.KlondikeDemo
 
Deck370 - Class in solitaire.examples
A Deck provides access to cards one-at-a-time using the Iterator interface from java.util.
Deck370() - Constructor for class solitaire.examples.Deck370
Construct a full deck in which the cards are shuffled.
DIAMONDS - Static variable in interface solitaire.IGuiCard
The int value for the suit DIAMONDS, useful in accessing suitPrefixes or for other purposes.

F

fireSolitaireEvent(SolitaireEvent) - Method in class solitaire.GuiCardProxy
Fire a solitaire event to all listeners.
FreecellDemo - Class in solitaire.examples
Ugly and poorly designed from a model/view/controller demo of solitaire code.
FreecellDemo() - Constructor for class solitaire.examples.FreecellDemo
 

G

getBottomPanel() - Method in class solitaire.examples.FreecellDemo
 
getBottomPanel() - Method in class solitaire.examples.KlondikeDemo
 
getCard() - Method in class solitaire.SolitaireEvent
Get card for event.
getCardId() - Method in class solitaire.GuiCard
Return a card ID based on the IGuiCard contract.
getCardId() - Method in class solitaire.GuiCardProxy
Return the id of the card this wraps, or the string of a blank card.
getCardId() - Method in interface solitaire.IGuiCard
Return a value used in the gui Solitaire package, the returned value must obey a contract: it's a two character lowercase string with first character the rank, the second the suit.
getFactory() - Static method in class solitaire.CardImageFactory
Return the only (singleton) factory created.
getID() - Method in class solitaire.GuiPileView
Return the id of the model observed by this view.
getImageIcon(String) - Method in class solitaire.CardImageFactory
Return the image for a specific card, where the name of the card conforms to contract in IGuiCard or is a constant from GuiConstants
getOrientation(int) - Method in class solitaire.GuiPileView
 
getPile(String) - Static method in class solitaire.GuiPileView
Get the view associated with some models's id.
getPileID() - Method in interface solitaire.IGuiPileModel
Return a unique id for a pile, e.g., "t1", "f1".
getPileID() - Method in class solitaire.SolitaireEvent
Get pile ID (unique) for event.
getProxy(String) - Static method in class solitaire.GuiCardProxy
Return the GuiCardProxy object for a specific card id --- where the id conforms to the contract described in IGuiCard
getTopPanel() - Method in class solitaire.examples.FreecellDemo
 
getTopPanel() - Method in class solitaire.examples.KlondikeDemo
 
getVisibleCard(int) - Method in interface solitaire.IGuiPileModel
Return the ith visible card.
getWrappedCard() - Method in class solitaire.GuiCardProxy
Return the wrapped IGuiCard for this proxy.
GRID_GAP - Static variable in interface solitaire.GuiConstants
The gap between piles in a GuiPilePanel.
GuiCard - Class in solitaire
Simple, minimal class that implements the IGuiCard interface.
GuiCard(int, int) - Constructor for class solitaire.GuiCard
Construct card with rank and suit.
GuiCardProxy - Class in solitaire
The GUI component that represents a card in the Solitaire package.
GuiCardProxy(String) - Constructor for class solitaire.GuiCardProxy
Construct a blank-card, e.g., as used on a free-cell pile when there's nothing there.
GuiConstants - Interface in solitaire
 
GuiPilePanel - Class in solitaire
A panel holding several piles.
GuiPilePanel(IGuiPileModel[]) - Constructor for class solitaire.GuiPilePanel
Construct a panel from the pile models.
GuiPileView - Class in solitaire
A view for a IGuiPileModel which is a simple interface for a solitaire pile.
GuiPileView(int, IGuiPileModel) - Constructor for class solitaire.GuiPileView
Create a view for the model parameter, and orient the view appropriately.
GuiPileView(IGuiPileModel) - Constructor for class solitaire.GuiPileView
Create a horizontal view for a model.

H

hasNext() - Method in class solitaire.examples.Deck370
Returns true if this deck can deal more cards, false otherwise.
HEARTS - Static variable in interface solitaire.IGuiCard
The int value for the suit HEARTS, useful in accessing suitPrefixes or for other purposes.
HORIZONTAL - Static variable in class solitaire.GuiPileView
Constant for creating a horizontal pile (untested in initial release).

I

IGuiCard - Interface in solitaire
This interface must be implemented by cards that will be used in the Solitaire package.
IGuiPileModel - Interface in solitaire
Simple interface for real views to implement.
isFaceUp() - Method in class solitaire.GuiCard
Return whether this card is face up.
isFaceUp() - Method in class solitaire.GuiCardProxy
Reports state of wrapped card, or true if there is no wrapped card.
isFaceUp() - Method in interface solitaire.IGuiCard
Return true when the card is face up, and false otherwise.
ISolitaireListener - Interface in solitaire
Process a semantic solitaire event.

J

JOKER - Static variable in interface solitaire.GuiConstants
Used to retrieve images from CardImageFactory, this is for a joker.

K

KlondikeDemo - Class in solitaire.examples
Ugly and poorly designed from a model/view/controller demo of solitaire code.
KlondikeDemo() - Constructor for class solitaire.examples.KlondikeDemo
 

L

loadImages() - Method in class solitaire.CardImageFactory
Load images of they are not already loaded.

M

main(String[]) - Static method in class solitaire.CardImageFactory
 
main(String[]) - Static method in class solitaire.examples.FreecellDemo
 
main(String[]) - Static method in class solitaire.examples.KlondikeDemo
 
makeMenu() - Method in class solitaire.examples.FreecellDemo
 
makeMenu() - Method in class solitaire.examples.KlondikeDemo
 
maxVisibleCount() - Method in interface solitaire.IGuiPileModel
Return the maximum number of cards that can be displayed.
mouseClicked(MouseEvent) - Method in class solitaire.GuiCardProxy
Listen for mouse clicks and report them to listeners as semantic events.
mouseEntered(MouseEvent) - Method in class solitaire.GuiCardProxy
Required by MouseListener interface, currently does nothing.
mouseExited(MouseEvent) - Method in class solitaire.GuiCardProxy
Required by MouseListener interface, currently does nothing.
mousePressed(MouseEvent) - Method in class solitaire.GuiCardProxy
Required by MouseListener interface, currently does nothing.
mouseReleased(MouseEvent) - Method in class solitaire.GuiCardProxy
Required by MouseListener interface, currently does nothing.
myCardList - Variable in class solitaire.examples.Deck370
 
myIndex - Variable in class solitaire.examples.Deck370
 

N

next() - Method in class solitaire.examples.Deck370
Return the next card in the deck (will throw an exception if there are no more cards).

O

OFFSET_FACTOR - Static variable in interface solitaire.GuiConstants
How much (percentage) of a card appears in a pile when cards cover each other vertically (or horizontally).

P

paintComponent(Graphics) - Method in class solitaire.GuiCardProxy
Paint appropriate image (card, grayed-image, blank, or back) when painting is needed, e.g., when game is displayed or cards moved.
paintComponent(Graphics) - Method in class solitaire.GuiPileView
 
processSolitaireEvent(SolitaireEvent) - Method in class solitaire.examples.FreecellDemo
 
processSolitaireEvent(SolitaireEvent) - Method in class solitaire.examples.KlondikeDemo
 
processSolitaireEvent(SolitaireEvent) - Method in interface solitaire.ISolitaireListener
Process an event when a card is clicked.

R

rankPrefixes - Static variable in interface solitaire.IGuiCard
String values useful in constructing return values for getCardId.
remove() - Method in class solitaire.examples.Deck370
Required for the Iterator interface, not implemented.
removeSolitaireListener(ISolitaireListener) - Static method in class solitaire.GuiCardProxy
Remove a listener from the list of Proxy listeners

S

setCard(IGuiCard) - Method in class solitaire.GuiCardProxy
Set the "real" card for which this card is a Gui/proxy.
setCoordinates(int, int, int, int) - Method in class solitaire.GuiCardProxy
Set coordinates for the bounds of this card.
setFaceUp(boolean) - Method in class solitaire.GuiCard
Set state of face-up, true means face-up, false means face down.
setOrientation(int) - Method in class solitaire.GuiPileView
 
setPile(GuiPileView) - Method in class solitaire.GuiCardProxy
Set the pile in which the card wrapped by this proxy is stored.
setSelected(boolean) - Method in class solitaire.GuiCardProxy
Set selected state (true means gray image).
setView(GuiPileView) - Method in interface solitaire.IGuiPileModel
Set view for a pile/model.
shuffle() - Method in class solitaire.examples.Deck370
 
solitaire - package solitaire
 
solitaire.examples - package solitaire.examples
 
SolitaireEvent - Class in solitaire
A semantic solitaire event storing both the card and the pile in which the card is stored for the card generating the event.
SolitaireEvent(GuiCardProxy, String) - Constructor for class solitaire.SolitaireEvent
Construct an event from a card and pile (presumably the card is in the pile but not enforced)
SPADES - Static variable in interface solitaire.IGuiCard
The int value for the suit SPADES, useful in accessing suitPrefixes or for other purposes.
suitPrefixes - Static variable in interface solitaire.IGuiCard
String values useful in constructing return values for getCardId.

T

toggleSelected() - Method in class solitaire.GuiCardProxy
Change state of selected/gray, e.g., if false, make it true and vice versa.
toString() - Method in class solitaire.GuiCardProxy
 

U

update() - Method in class solitaire.GuiPileView
Redisplay all visible cards from the model that is observed by this view.

V

VERTICAL - Static variable in class solitaire.GuiPileView
Constant for creating a vertical pile.
visibleCardCount() - Method in interface solitaire.IGuiPileModel
Number of cards visible (displayed) from the model.

A B C D F G H I J K L M N O P R S T U V