agentland.device
Class AlphaLEDFonts

java.lang.Object
  |
  +--agentland.device.AlphaLEDFonts

public class AlphaLEDFonts
extends Object


Field Summary
static byte[] bFontCodes
           
static int DEFAULT
           
static int HUGE
           
static int HUGEFBOLD
           
static int HUGESTANDARD
           
static int LARGE
           
static int LARGESTANDARD
           
static int MEDIUM
           
static int MEDIUMBOLD
           
static int MEDIUMSTANDARD
           
static String[] sFontNames
           
static int SMALL
           
static int SMALLSTANDARD
           
static String[] sRealFontNames
           
 
Constructor Summary
AlphaLEDFonts()
           
 
Method Summary
static byte getFont(int iFont)
          Returns the byte code for a given font of the Alpha LED sign.
static byte getFont(String sFont)
          Returns the byte code for a given font of the Alpha LED sign.
static String randomFont()
          Returns the String name of a random font
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SMALL

public static final int SMALL

MEDIUM

public static final int MEDIUM

LARGE

public static final int LARGE

HUGE

public static final int HUGE

SMALLSTANDARD

public static final int SMALLSTANDARD

MEDIUMSTANDARD

public static final int MEDIUMSTANDARD

LARGESTANDARD

public static final int LARGESTANDARD

HUGESTANDARD

public static final int HUGESTANDARD

MEDIUMBOLD

public static final int MEDIUMBOLD

HUGEFBOLD

public static final int HUGEFBOLD

DEFAULT

public static final int DEFAULT

sFontNames

public static final String[] sFontNames

sRealFontNames

public static final String[] sRealFontNames

bFontCodes

public static final byte[] bFontCodes
Constructor Detail

AlphaLEDFonts

public AlphaLEDFonts()
Method Detail

getFont

public static byte getFont(int iFont)
Returns the byte code for a given font of the Alpha LED sign. If the font is not found, then returns the code for either SMALL or HUGE (depending on the input).
Parameters:
iFont - an int value
Returns:
a byte value

getFont

public static byte getFont(String sFont)
Returns the byte code for a given font of the Alpha LED sign. If the font is not found, then returns the code for MEDIUM font.
Parameters:
sFont - a String value
Returns:
a byte value

randomFont

public static String randomFont()
Returns the String name of a random font
Returns:
a String value