|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PlainPuzzleIcon
Not in image, just a numbered puzzle icon/tile.
Field Summary | |
protected java.lang.String |
myLabel
|
protected int |
mySize
|
Constructor Summary | |
PlainPuzzleIcon(java.lang.String label,
int size)
Create a tile with specific label of designated size. |
Method Summary | |
int |
getIconHeight()
Needed for interface, not used in this project. |
int |
getIconWidth()
Needed for interface, not used in this project. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Draws this plain icon at the proper size. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String myLabel
protected int mySize
Constructor Detail |
public PlainPuzzleIcon(java.lang.String label, int size)
Method Detail |
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
c
- is used to determine how big to draw this Icong
- is the graphics context in which drawing takes placepublic int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |