Constructor and Description |
---|
RenderedImageIcon(RenderedImage image)
Constructs a new
RenderedImageIcon for the given RenderedImage . |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight()
Returns the icon's height.
|
int |
getIconWidth()
Returns the icon's width.
|
RenderedImage |
getImage()
Returns the wrapped
RenderedImage . |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draw the icon at the specified location.
|
public RenderedImageIcon(RenderedImage image)
RenderedImageIcon
for the given RenderedImage
.image
- the image to be wrappedpublic RenderedImage getImage()
RenderedImage
.public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
Copyright © 2014–2015 European Space Agency (ESA). All rights reserved.