Constructor and Description |
---|
ScaledImageIcon(Icon icon,
int maxW,
int maxH) |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
Image |
getImage() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public ScaledImageIcon(Icon icon, int maxW, int maxH)
icon
- maxW
- if 0 then it is ignoredmaxH
- if 0 then it is ignoredpublic int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public Image getImage()
Copyright © 1999–2019 ViaOA. All rights reserved.