| Constructor and Description |
|---|
SpriteIcon(Sprite sprite)
Creates a sprite icon that will use the supplied sprite to render
itself.
|
SpriteIcon(Sprite sprite,
int padding)
Creates a sprite icon that will use the supplied sprite to render
itself.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public SpriteIcon(Sprite sprite)
public SpriteIcon(Sprite sprite, int padding)
sprite - the sprite to render in this label.padding - the number of pixels of blank space to put on all
four sides of the sprite.public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface IconCopyright © 2015. All rights reserved.