Package org.esa.snap.ui
Class RenderedImageIcon
- java.lang.Object
-
- org.esa.snap.ui.RenderedImageIcon
-
-
Constructor Summary
Constructors Constructor Description RenderedImageIcon(RenderedImage image)Constructs a newRenderedImageIconfor the givenRenderedImage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()Returns the icon's height.intgetIconWidth()Returns the icon's width.RenderedImagegetImage()Returns the wrappedRenderedImage.voidpaintIcon(Component c, Graphics g, int x, int y)Draw the icon at the specified location.
-
-
-
Constructor Detail
-
RenderedImageIcon
public RenderedImageIcon(RenderedImage image)
Constructs a newRenderedImageIconfor the givenRenderedImage.- Parameters:
image- the image to be wrapped
-
-
Method Detail
-
getImage
public RenderedImage getImage()
Returns the wrappedRenderedImage.
-
getIconWidth
public int getIconWidth()
Returns the icon's width.- Specified by:
getIconWidthin interfaceIcon- Returns:
- an int specifying the fixed width of the icon.
-
getIconHeight
public int getIconHeight()
Returns the icon's height.- Specified by:
getIconHeightin interfaceIcon- Returns:
- an int specifying the fixed height of the icon.
-
-