Icon
, UIResource
, ResizableIcon
public class ResizableIconUIResource extends Object implements ResizableIcon, UIResource
Constructor | Description |
---|---|
ResizableIconUIResource(ResizableIcon delegate) |
Modifier and Type | Method | Description |
---|---|---|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
|
void |
setDimension(Dimension newDimension) |
Changes the dimension of
this icon. |
public ResizableIconUIResource(ResizableIcon delegate)
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void setDimension(Dimension newDimension)
ResizableIcon
this
icon.setDimension
in interface ResizableIcon
newDimension
- New dimension for this
icon.