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 TypeMethodDescriptionint
int
void
void
setDimension
(Dimension newDimension) Changes the dimension ofthis
icon.
-
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: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
-
paintIcon
-