Class ScaledImageIconWrapper

    • Constructor Detail

      • ScaledImageIconWrapper

        public ScaledImageIconWrapper​(javax.swing.Icon baseIcon,
                                      int width,
                                      int height)
        Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size. The rendering hints of Image.SCALE_AREA_AVERAGING will be applied.
        Parameters:
        baseIcon - base icon
        width - new icon width
        height - new icon height
      • ScaledImageIconWrapper

        public ScaledImageIconWrapper​(javax.swing.Icon baseIcon,
                                      int width,
                                      int height,
                                      int hints)
        Construct wrapped scaled ImageIcon based upon specified baseIcon and desired size
        Parameters:
        baseIcon - base icon
        width - new icon width
        height - new icon height
        hints - RenderingHints used by Graphics2D