Icon
public class BufferedImageIcon extends Object implements Icon
Icon
implementation backed by a BufferedImage
.
Constructor | Description |
---|---|
BufferedImageIcon(BufferedImage pImage) |
|
BufferedImageIcon(BufferedImage pImage,
int pWidth,
int pHeight) |
|
BufferedImageIcon(BufferedImage pImage,
int pWidth,
int pHeight,
boolean useFastRendering) |
Modifier and Type | Method | Description |
---|---|---|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public BufferedImageIcon(BufferedImage pImage)
public BufferedImageIcon(BufferedImage pImage, int pWidth, int pHeight)
public BufferedImageIcon(BufferedImage pImage, int pWidth, int pHeight, boolean useFastRendering)
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
Copyright © 2018. All rights reserved.