org.flashcards
Class Card

java.lang.Object
  |
  +--org.flashcards.Card

public class Card
extends java.lang.Object

The Card class represents a flashcard, which has some text on the front and some text on the back.


Field Summary
private  java.lang.String back
           
private  java.awt.Color backColor
           
private  java.lang.String front
           
private  java.awt.Color frontColor
           
 
Constructor Summary
Card()
          Construct a new flashcard.
Card(java.lang.String front, java.lang.String back)
          Construct a new flashcard with front and back set to the given text.
 
Method Summary
 void flip()
          Flip the card.
 java.lang.String getBack()
          Return the back of the flashcard.
 java.awt.Color getBackColor()
          Return the back color.
 java.lang.String getFront()
          Return the front of the flashcard.
 java.awt.Color getFrontColor()
          Return the front color.
 void setBack(java.lang.String back)
          Set the back of the flashcard to the given text.
 void setBackColor(java.awt.Color c)
          Set the back color.
 void setFront(java.lang.String front)
          Set the front of the flashcard to the given text.
 void setFrontColor(java.awt.Color c)
          Set the front color.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

front

private java.lang.String front

back

private java.lang.String back

frontColor

private java.awt.Color frontColor

backColor

private java.awt.Color backColor
Constructor Detail

Card

public Card()
Construct a new flashcard.

Card

public Card(java.lang.String front,
            java.lang.String back)
Construct a new flashcard with front and back set to the given text.
Method Detail

getFront

public java.lang.String getFront()
Return the front of the flashcard.

setFront

public void setFront(java.lang.String front)
Set the front of the flashcard to the given text.

getBack

public java.lang.String getBack()
Return the back of the flashcard.

setBack

public void setBack(java.lang.String back)
Set the back of the flashcard to the given text.

getFrontColor

public java.awt.Color getFrontColor()
Return the front color.

setFrontColor

public void setFrontColor(java.awt.Color c)
Set the front color.

getBackColor

public java.awt.Color getBackColor()
Return the back color.

setBackColor

public void setBackColor(java.awt.Color c)
Set the back color.

flip

public void flip()
Flip the card.