public class CompoundIcon
extends java.lang.Object
implements javax.swing.Icon
Modifier and Type | Field and Description |
---|---|
static int |
BOTTOM_LEFT |
static int |
BOTTOM_RIGHT |
static int |
TOP_LEFT |
static int |
TOP_RIGHT |
Constructor and Description |
---|
CompoundIcon(javax.swing.Icon baseIcon) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Returns the
height of the baseIcon |
int |
getIconWidth()
Returns the
width of the baseIcon |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
void |
removeOverlays() |
void |
setBottomLeftOverlay(javax.swing.Icon icon) |
void |
setBottomRightOverlay(javax.swing.Icon icon) |
void |
setOverlay(int corner,
javax.swing.Icon icon) |
void |
setTopLeftOverlay(javax.swing.Icon icon) |
void |
setTopRightOverlay(javax.swing.Icon icon) |
public static final int TOP_LEFT
public static final int TOP_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_RIGHT
public CompoundIcon(javax.swing.Icon baseIcon)
baseIcon
- public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
Icon.paintIcon(java.awt.Component, java.awt.Graphics, int, int)
public void removeOverlays()
public void setTopLeftOverlay(javax.swing.Icon icon)
public void setTopRightOverlay(javax.swing.Icon icon)
public void setBottomLeftOverlay(javax.swing.Icon icon)
public void setBottomRightOverlay(javax.swing.Icon icon)
public void setOverlay(int corner, javax.swing.Icon icon)
public int getIconWidth()
width
of the baseIcon
getIconWidth
in interface javax.swing.Icon
Icon.getIconWidth()
public int getIconHeight()
height
of the baseIcon
getIconHeight
in interface javax.swing.Icon
Icon.getIconHeight()