public class OverlayIcon extends Object implements Icon
Icon from an existing Icon by overlaying another
Icon.
The overlaid icon may be placed at any compass point.
SwingConstants| Constructor and Description |
|---|
OverlayIcon(Icon overlayIcon,
Icon icon,
int position)
Constructor for the OverlayIcon object
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIconHeight() |
int |
getIconWidth() |
Icon |
getOverlayIcon()
Get the overlay icon
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public Icon getOverlayIcon()
public int getIconHeight()
getIconHeight in interface Iconpublic int getIconWidth()
getIconWidth in interface IconCopyright © 2021. All rights reserved.