Class Square
java.lang.Object
Square
- public abstract class Square
- extends java.lang.Object
This class builds and controls a Square of the Board. Icon construction is
handled here.
Square is abstract, and each type of square is supered from it.
- Version:
- 2.0
- Author:
- 3GP01 - Hardev Bhamra, Deepak Chandarana, James Tompkin
- See Also:
Board
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Square
public Square()
Square
public Square(int xx,
int yy)
Square
public Square(Letter l)
getScrabble
public Scrabble getScrabble()
setLetter
public void setLetter(Letter l)
setX
public void setX(int xx)
setY
public void setY(int yy)
getIcon
public javax.swing.ImageIcon getIcon(java.awt.Color color)
getDisabledIcon
public javax.swing.ImageIcon getDisabledIcon(java.awt.Color color)
getRolloverIcon
public javax.swing.ImageIcon getRolloverIcon(java.awt.Color color)
getPressedIcon
public javax.swing.ImageIcon getPressedIcon(java.awt.Color color)
getDescription
public abstract java.lang.String getDescription()
getX
public int getX()
getY
public int getY()
clear
public void clear()
getLetter
public Letter getLetter()
getLetterFromSymbol
public Letter getLetterFromSymbol(char sym)
isOccupied
public boolean isOccupied()
getLetterScore
public abstract int getLetterScore(Letter l)
getLetterScore
public int getLetterScore()
getWordScore
public abstract int getWordScore()
squareSymbol
public abstract java.lang.String squareSymbol()
toString
public java.lang.String toString()
getText
public java.lang.String getText()
getColor
public abstract java.awt.Color getColor()
clone
public abstract java.lang.Object clone()