jaige.games.ataxx.gui
Class CellIcon
java.lang.Object
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:
paintIcon
in interface javax.swing.Icon
- Parameters:
c
- Componentg
- Graphicsx
- inty
- int
getIconHeight
public int getIconHeight()
- Returns the icon's height.
- Specified by:
getIconHeight
in 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:
getIconWidth
in interface javax.swing.Icon
- Returns:
- an int specifying the fixed width of the icon.
setSize
public void setSize(int size)