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 ofResizableIconthat 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 intgetIconHeight()intgetIconWidth()voidpaintIcon(Component c, Graphics g, int x, int y)voidsetDimension(Dimension newDimension)Changes the dimension ofthisicon.
-
-
-
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:ResizableIconChanges the dimension ofthisicon.- Specified by:
setDimensionin interfaceResizableIcon- Parameters:
newDimension- New dimension forthisicon.
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfaceIcon
-
-