org.pushingpixels.flamingo.api.common.icon
public class EmptyResizableIcon extends Object implements ResizableIcon
ResizableIcon
that paints nothing.Modifier and Type | Field and Description |
---|---|
protected int |
height
The current icon height.
|
protected int |
width
The current icon width.
|
Constructor and Description |
---|
EmptyResizableIcon(Dimension initialDim)
Creates a new empty resizable icon of the specified size.
|
EmptyResizableIcon(int initialDim)
Creates a new empty resizable icon of the specified size.
|
Modifier and Type | Method and 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. |
protected int width
protected int height
public EmptyResizableIcon(Dimension initialDim)
initialDim
- Initial dimension of the icon.public EmptyResizableIcon(int initialDim)
initialDim
- Initial dimension of the icon.public void setDimension(Dimension newDimension)
ResizableIcon
this
icon.setDimension
in interface ResizableIcon
newDimension
- New dimension for this
icon.public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon