Class FilteredResizableIcon

java.lang.Object
org.pushingpixels.flamingo.api.common.icon.FilteredResizableIcon
All Implemented Interfaces:
Icon, ResizableIcon

public class FilteredResizableIcon extends Object implements ResizableIcon
Implementation of ResizableIcon that allows applying a BufferedImageOp on another icon.
  • Field Details

  • Constructor Details

    • FilteredResizableIcon

      public FilteredResizableIcon(ResizableIcon delegate, BufferedImageOp operation)
      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 interface Icon
    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • setDimension

      public void setDimension(Dimension newDimension)
      Description copied from interface: ResizableIcon
      Changes the dimension of this icon.
      Specified by:
      setDimension in interface ResizableIcon
      Parameters:
      newDimension - New dimension for this icon.
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon