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 ResizableIconThe main (pre-filtered) icon.protected BufferedImageOpFilter operation. -
Constructor Summary
ConstructorsConstructorDescriptionFilteredResizableIcon(ResizableIcon delegate, BufferedImageOp operation) Creates a new filtered icon. -
Method Summary
Modifier and TypeMethodDescriptionintintvoidvoidsetDimension(Dimension newDimension) Changes the dimension ofthisicon.
-
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:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
setDimension
Description copied from interface:ResizableIconChanges the dimension ofthisicon.- Specified by:
setDimensionin interfaceResizableIcon- Parameters:
newDimension- New dimension forthisicon.
-
paintIcon
-