jaige.games.ataxx.gui
Class CellIcon
java.lang.Object
   jaige.games.ataxx.gui.CellIcon
jaige.games.ataxx.gui.CellIcon
- All Implemented Interfaces: 
- javax.swing.Icon
- public class CellIcon 
- extends java.lang.Object- implements javax.swing.Icon
 
| Method Summary | 
|  int | getIconHeight()Returns the icon's height.
 | 
|  int | getIconWidth()Returns the icon's width.
 | 
|  void | paintIcon(java.awt.Component c,
          java.awt.Graphics g,
          int x,
          int y)Draw the icon at the specified location.
 | 
|  void | setColor(java.awt.Color c)
 | 
|  void | setSize(int size)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CellIcon
public CellIcon()
CellIcon
public CellIcon(int size)
setColor
public void setColor(java.awt.Color c)
- 
 
- 
 
paintIcon
public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
- Draw the icon at the specified location.
 
- 
- Specified by:
- paintIconin interface- javax.swing.Icon
 
- 
- Parameters:
- c- Component
- g- Graphics
- x- int
- y- int
 
getIconHeight
public int getIconHeight()
- Returns the icon's height.
 
- 
- Specified by:
- getIconHeightin interface- javax.swing.Icon
 
- 
- Returns:
- an int specifying the fixed height of the icon.
 
getIconWidth
public int getIconWidth()
- Returns the icon's width.
 
- 
- Specified by:
- getIconWidthin interface- javax.swing.Icon
 
- 
- Returns:
- an int specifying the fixed width of the icon.
 
setSize
public void setSize(int size)
- 
 
-