Interface ThemedIcon

    • Method Detail

      • derive

        ThemedIcon derive​(int newWidth,
                          int newHeight)
        Returns a new icon that renders the same image as this icon, but at a different size.
        Parameters:
        newWidth - the new width ≥ 1
        newHeight - the new height ≥ 1
        Returns:
        an icon with the revised dimensions
      • derive

        default ThemedIcon derive​(int newSize)
        Returns a new icon that renders the same image as this icon, but at a different size.
        Parameters:
        newSize - the new width and height ≥ 1
        Returns:
        an icon with the revised dimensions
      • disabled

        ThemedIcon disabled()
        Returns a new icon that renders the same image as this icon, but as if for a permanently disabled component.
        Returns:
        a disabled verison of the icon
      • create

        static ThemedIcon create​(javax.swing.Icon icon)
        Creates a themed icon from any arbitrary icon. If passed a themed icon, returns it unchanged. If passed null, returns null. If passed some other type of icon, it is converted to an equivalent themed icon.
        Parameters:
        icon - the icon to create a themed version for
        Returns:
        a themed icon that renders the same graphic as the specified icon
      • create

        static ThemedIcon create​(java.io.File platformFile)
        Creates a themed icon based on the platform desktop icon for the specified icon.
        Parameters:
        file - the non-null file to create an icon for