public class SubImageIcon extends Object implements Icon
Modifier and Type | Field and Description |
---|---|
private int |
h |
private Image |
image |
private int |
w |
private int |
x0 |
private int |
y0 |
Constructor and Description |
---|
SubImageIcon(Image image,
int x,
int y,
int w,
int h)
Construct a new
SubImageIcon . |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics gc,
int x,
int y) |
public SubImageIcon(Image image, int x, int y, int w, int h)
SubImageIcon
.image
- The parent image.x
- The x-offset of the icon within the image.y
- The y-offset of the icon within the image.w
- The width of the icon.h
- The height of the icon.public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses