|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdip.gui.swing.ColorRectIcon
Creates an Icon that is a solid color within a 1-pixel black rectangular border.
NOTE: if this is going to be used by ANY other class, it should be taken out instead of be a nested class.
| Constructor Summary | |
ColorRectIcon(int height,
int width,
java.awt.Color color)
Create a ColorRect |
|
| Method Summary | |
int |
getIconHeight()
Icon height |
int |
getIconWidth()
Icon width |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Draw the Icon |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ColorRectIcon(int height,
int width,
java.awt.Color color)
| Method Detail |
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Icon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||