edu.kzoo.grid.gui
Class GridEditor.GridObjectIcon
java.lang.Object
|
+--edu.kzoo.grid.gui.GridEditor.GridObjectIcon
- All Implemented Interfaces:
- javax.swing.Icon
- Enclosing class:
- GridEditor
- protected class GridEditor.GridObjectIcon
- extends java.lang.Object
- implements javax.swing.Icon
Nested class used to draw the icons used for
GridObject entries in the grid object combo box.
We construct a GridObject object and then hand it off to
its display object to draw.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridEditor.GridObjectIcon
public GridEditor.GridObjectIcon(java.lang.Class cl,
int w,
int h)
GridEditor.GridObjectIcon
public GridEditor.GridObjectIcon(java.lang.Class cl,
java.awt.Color c,
int w,
int h)
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
paintIcon
public void paintIcon(java.awt.Component comp,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon