Class FilteredResizableIcon
java.lang.Object
org.pushingpixels.flamingo.api.common.icon.FilteredResizableIcon
- All Implemented Interfaces:
Icon
,ResizableIcon
Implementation of
ResizableIcon
that allows applying a
BufferedImageOp
on another icon.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,
BufferedImage> Image cache to speed up rendering.protected ResizableIcon
The main (pre-filtered) icon.protected BufferedImageOp
Filter operation. -
Constructor Summary
ConstructorsConstructorDescriptionFilteredResizableIcon
(ResizableIcon delegate, BufferedImageOp operation) Creates a new filtered icon. -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
void
setDimension
(Dimension newDimension) Changes the dimension ofthis
icon.
-
Field Details
-
cachedImages
Image cache to speed up rendering. -
delegate
The main (pre-filtered) icon. -
operation
Filter operation.
-
-
Constructor Details
-
FilteredResizableIcon
Creates a new filtered icon.- Parameters:
delegate
- The main (pre-filtered) icon.operation
- Filter operation.
-
-
Method Details
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
setDimension
Description copied from interface:ResizableIcon
Changes the dimension ofthis
icon.- Specified by:
setDimension
in interfaceResizableIcon
- Parameters:
newDimension
- New dimension forthis
icon.
-
paintIcon
-