Interface ResizableIcon

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      Returns cloned instance of this icon.
      void paintIcon​(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)
      Draw the icon in the given bounds.
      • Methods inherited from interface javax.swing.Icon

        getIconHeight, getIconWidth, paintIcon
    • Method Detail

      • paintIcon

        void paintIcon​(@CheckForNull
                       java.awt.Component c,
                       java.awt.Graphics g,
                       int x,
                       int y,
                       int w,
                       int h)
        Draw the icon in the given bounds. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.
        Parameters:
        c - the given component.
        g - the graphics to paint on.
        x - x coordinate.
        y - y coordinate.
        w - width to paint.
        h - height to paint.
      • clone

        java.lang.Object clone()
        Returns cloned instance of this icon.
        Returns:
        cloned instance.