Module tvbrowser
Package devplugin

Class ProgramInfoHelper


  • public class ProgramInfoHelper
    extends java.lang.Object
    Holds all Information needed to Display the additional Information to a Program, like Black and White..
    Author:
    bodo
    • Constructor Detail

      • ProgramInfoHelper

        public ProgramInfoHelper()
    • Method Detail

      • bitSet

        public static boolean bitSet​(int num,
                                     int pattern)
        Returns whether a bit (or combination of bits) is set in the specified number.
        Parameters:
        num - The number with the set bit.
        pattern - The pattern to check for.
        Returns:
        true, if the bit is set
      • getInfoBits

        public static final int[] getInfoBits()
        Returns:
        the info bit array
        Since:
        3.0
      • getInfoIcons

        public static final javax.swing.Icon[] getInfoIcons()
        Returns:
        the info icon array
        Since:
        3.0
      • getInfoIconFilenames

        @Deprecated(since="3.3.4")
        public static final java.lang.String[] getInfoIconFilenames()
        Deprecated.
        since 3.3.4 use getInfoIconURLs() instead.
        Returns:
        the info icon URLs array
        Since:
        3.0
      • getInfoIconURLs

        public static final java.lang.String[] getInfoIconURLs()
        Returns:
        The info icon URLs array
        Since:
        3.3.4
      • getInfoIconMessages

        public static final java.lang.String[] getInfoIconMessages()
        Returns:
        the info message array (localized)
        Since:
        3.0
      • getMessageForBit

        public static java.lang.String getMessageForBit​(int bit)
        Parameters:
        bit - The bit to get message for.
        Returns:
        The message for the given bit.
        Since:
        3.3.4
      • getIndexForBit

        public static int getIndexForBit​(int bit)
        Parameters:
        bit - The bit to get the index for.
        Returns:
        The index of the bit or -1 if bit not found.
        Since:
        3.3.4
      • getBitForIndex

        public static int getBitForIndex​(int index)
        Parameters:
        index - The index to get the bit for.
        Returns:
        The bit for the index or 0 if index available.
        Since:
        3.3.4