Class EmptyResizableIcon
java.lang.Object
org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon
- All Implemented Interfaces:
Icon,ResizableIcon
Implementation of
ResizableIcon that paints nothing.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmptyResizableIcon(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
Modifier and TypeMethodDescriptionintintvoidvoidsetDimension(Dimension newDimension) Changes the dimension ofthisicon.
-
Field Details
-
width
protected int widthThe current icon width. -
height
protected int heightThe current icon height.
-
-
Constructor Details
-
EmptyResizableIcon
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 Details
-
setDimension
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
-
paintIcon
-