Class EmptyResizableIcon
- java.lang.Object
-
- org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon
-
- All Implemented Interfaces:
Icon
,ResizableIcon
public class EmptyResizableIcon extends Object implements ResizableIcon
Implementation ofResizableIcon
that paints nothing.
-
-
Constructor Summary
Constructors Constructor Description EmptyResizableIcon(int initialDim)
Creates a new empty resizable icon of the specified size.EmptyResizableIcon(Dimension initialDim)
Creates a new empty resizable icon of the specified size.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 ofthis
icon.
-
-
-
Constructor Detail
-
EmptyResizableIcon
public EmptyResizableIcon(Dimension initialDim)
Creates a new empty resizable icon of the specified size.- Parameters:
initialDim
- Initial dimension of the icon.
-
EmptyResizableIcon
public EmptyResizableIcon(int initialDim)
Creates a new empty resizable icon of the specified size.- Parameters:
initialDim
- Initial dimension of the icon.
-
-
Method Detail
-
setDimension
public void setDimension(Dimension newDimension)
Description copied from interface:ResizableIcon
Changes the dimension ofthis
icon.- Specified by:
setDimension
in interfaceResizableIcon
- Parameters:
newDimension
- New dimension forthis
icon.
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfaceIcon
-
-