Class FilteredResizableIcon

  • All Implemented Interfaces:
    javax.swing.Icon, org.pushingpixels.neon.api.icon.ResizableIcon


    public class FilteredResizableIcon
    extends java.lang.Object
    implements org.pushingpixels.neon.api.icon.ResizableIcon
    Implementation of ResizableIcon that allows applying a BufferedImageOp on another icon.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.pushingpixels.neon.api.icon.ResizableIcon

        org.pushingpixels.neon.api.icon.ResizableIcon.Factory
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.pushingpixels.neon.api.icon.ResizableIcon.Factory factory​(org.pushingpixels.neon.api.icon.ResizableIcon.Factory delegateFactory, java.awt.image.BufferedImageOp operation)  
      int getIconHeight​()  
      int getIconWidth​()  
      void paintIcon​(java.awt.Component c, java.awt.Graphics g, int x, int y)  
      void setDimension​(java.awt.Dimension newDimension)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.pushingpixels.neon.api.icon.ResizableIcon

        toImage
    • Method Detail

      • getIconHeight

        public int getIconHeight​()
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • getIconWidth

        public int getIconWidth​()
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • setDimension

        public void setDimension​(java.awt.Dimension newDimension)
        Specified by:
        setDimension in interface org.pushingpixels.neon.api.icon.ResizableIcon
      • paintIcon

        public void paintIcon​(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon
      • factory

        public static org.pushingpixels.neon.api.icon.ResizableIcon.Factory factory​(org.pushingpixels.neon.api.icon.ResizableIcon.Factory delegateFactory,
                                                                                    java.awt.image.BufferedImageOp operation)