|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.swing.icon.BlankIcon
public class BlankIcon
A blank Java icon. Original package: jp.gr.java_conf.tame.swing.icon This class is in the public domain.
| Constructor Summary | |
|---|---|
BlankIcon()
Creates a transparent blank icon that is 11 px wide and 11 px high. |
|
BlankIcon(Color color,
int size)
Creates a new blank icon with the specified color and size. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Gets the height of this icon. |
int |
getIconWidth()
Gets the width of this icon. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints this icon on the specified graphics object at the specified location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlankIcon()
public BlankIcon(Color color,
int size)
color - the background color for the icon, if it is null the
icon will be transparentsize - the size in pixels for the icon| Method Detail |
|---|
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Iconc - ignored, may be nullg - the graphics object to paint onx - the x-offset for this icony - the y-offset for this iconpublic int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Icon
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||