- java.lang.Object
-
- devplugin.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 Summary
Constructors Constructor Description ProgramInfoHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
bitSet(int num, int pattern)
Returns whether a bit (or combination of bits) is set in the specified number.static int
getBitForIndex(int index)
static int
getIndexForBit(int bit)
static int[]
getInfoBits()
static java.lang.String[]
getInfoIconFilenames()
Deprecated.since 3.3.4 usegetInfoIconURLs()
instead.static java.lang.String[]
getInfoIconMessages()
static javax.swing.Icon[]
getInfoIcons()
static java.lang.String[]
getInfoIconURLs()
static java.lang.String
getMessageForBit(int bit)
-
-
-
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 usegetInfoIconURLs()
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
-
-