Class SummaryEntry

java.lang.Object
  extended by SummaryEntry
All Implemented Interfaces:
java.io.Serializable

public class SummaryEntry
extends java.lang.Object
implements java.io.Serializable

This class describes a single summary entry. A summary entry is a blank or unused tile and the feedback associated with that tile.

See Also:
Serialized Form

Field Summary
(package private) static int BLANK
          Blank tile type of SummaryEntry
(package private)  java.lang.String description
          Reason for leaving out, or description if a BLANK entry type
(package private)  javax.swing.ImageIcon img
          Image of blank tile in the entry
(package private) static int LEFT_OUT
          Left Out type of SummaryEntry
(package private)  int moveNum
          Move number the blank tile was added at
private static long serialVersionUID
           
(package private)  int tileID
          Tile ID of tile in the entry
(package private)  java.lang.String tileName
          Name of the blank tile in the entry
(package private)  int type
          Type of entry (LEFT_OUT or BLANK)
 
Constructor Summary
SummaryEntry(int id, java.lang.String desc)
          This constructor is used for LEFT_OUT type entries.
SummaryEntry(java.lang.String name, java.lang.String desc, int num, javax.swing.ImageIcon ii)
          This constructor is used for the BLANK type entries.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

LEFT_OUT

static final int LEFT_OUT
Left Out type of SummaryEntry

See Also:
Constant Field Values

BLANK

static final int BLANK
Blank tile type of SummaryEntry

See Also:
Constant Field Values

type

int type
Type of entry (LEFT_OUT or BLANK)


tileID

int tileID
Tile ID of tile in the entry


tileName

java.lang.String tileName
Name of the blank tile in the entry


description

java.lang.String description
Reason for leaving out, or description if a BLANK entry type


moveNum

int moveNum
Move number the blank tile was added at


img

javax.swing.ImageIcon img
Image of blank tile in the entry

Constructor Detail

SummaryEntry

public SummaryEntry(int id,
                    java.lang.String desc)
This constructor is used for LEFT_OUT type entries. It sets the tile ID and the description.

Parameters:
id - Tile ID of the left out tile
desc - Reason the tile was left out.

SummaryEntry

public SummaryEntry(java.lang.String name,
                    java.lang.String desc,
                    int num,
                    javax.swing.ImageIcon ii)
This constructor is used for the BLANK type entries. It sets the name, description, move number, and image.

Parameters:
name - Name of the blank tile
desc - Description of the blank tile
num - Move number the tile was added at
ii - ImageIcon of the blank tile