public class Icon extends Object implements Icon, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Icon |
delegateIcon |
protected static BufferedImage |
emptyImage |
protected Object |
iconSource |
| Constructor and Description |
|---|
Icon(File fileIcon)
Констуктор
|
Icon(URL urlIcon)
Конструктор
|
| Modifier and Type | Method and Description |
|---|---|
protected BufferedImage |
createEmtpry(int tw,
int th) |
protected BufferedImage |
getEmptyImage() |
int |
getIconHeight()
Возвращает высоту иконки
|
Object |
getIconSource()
Указывает источник иконки.
|
int |
getIconWidth()
Возвращает ширину иконки
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Отображает иконку
|
protected Icon delegateIcon
protected Object iconSource
protected static BufferedImage emptyImage
public Icon(URL urlIcon)
urlIcon - ссылка на иконкуpublic Icon(File fileIcon)
fileIcon - файл с иконкойpublic Object getIconSource()
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Iconprotected BufferedImage createEmtpry(int tw, int th)
protected BufferedImage getEmptyImage()
Copyright © 2019. All rights reserved.