Module tvbrowser

Class ZipIconTheme

  • All Implemented Interfaces:
    java.lang.Comparable<IconTheme>

    public class ZipIconTheme
    extends IconTheme
    This Class implements the IconTheme for a Zip-File.
    Author:
    bodum
    • Constructor Summary

      Constructors 
      Constructor Description
      ZipIconTheme​(java.io.File iconZip)
      Create the Zip Icon Theme
    • Constructor Detail

      • ZipIconTheme

        public ZipIconTheme​(java.io.File iconZip)
        Create the Zip Icon Theme
        Parameters:
        iconZip - Zip with Theme
    • Method Detail

      • getInputStream

        protected java.io.InputStream getInputStream​(java.lang.String entry)
        Get an InputStream from the Icon-Theme.
        Specified by:
        getInputStream in class IconTheme
        Parameters:
        entry - File/Entry to load
        Returns:
        InputStream of specific Entry
      • entryExists

        protected boolean entryExists​(java.lang.String entry)
        Tests if an Entry exists in the Icon-Theme
        Specified by:
        entryExists in class IconTheme
        Parameters:
        entry - check for this Entry
        Returns:
        True, if the Entry exists
      • getImageFromTheme

        protected javax.swing.ImageIcon getImageFromTheme​(java.lang.String image)
        Get an Image from the Icon-Theme
        Specified by:
        getImageFromTheme in class IconTheme
        Parameters:
        image - get this Image
        Returns:
        Image