public class CenteredIcon
extends java.lang.Object
implements javax.swing.Icon
Constructor and Description |
---|
CenteredIcon(javax.swing.Icon icon) |
CenteredIcon(javax.swing.Icon icon,
int width,
int height) |
CenteredIcon(javax.swing.Icon icon,
int width,
int height,
boolean centeredInComponent) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public CenteredIcon(javax.swing.Icon icon)
public CenteredIcon(javax.swing.Icon icon, int width, int height)
public CenteredIcon(javax.swing.Icon icon, int width, int height, boolean centeredInComponent)
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon