|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.graphics.typography.GLF2Header
public class GLF2Header
Stores information from the header of a '.glf' file. See comments in class GLF2GlyphSetFactory for an explanation of what a '.glf' file is.
Field Summary | |
---|---|
static int |
BYTES_PER_PIXEL
The mipmap uses two bytes per pixel (luminescence and alpha). |
static int |
CHAR_INFO_BYTES
Each character info block in a '.glf' file has 24 bytes. |
static int |
END_INDEX
The end char integer starts at index 16 of the header. |
static int |
HEADER_BYTES
The header in a '.glf' file has 24 bytes. |
static int |
HEIGHT_INDEX
The bitmap height integer starts at index 8 of the header. |
static int |
START_INDEX
The start char integer starts at index 12 of the header. |
static int |
WIDTH_INDEX
The bitmap width integer starts at index 4 of the header. |
static int |
X1_INDEX
The bitmap width integer starts at index 8 of the header. |
static int |
X2_INDEX
The start char integer starts at index 16 of the header. |
static int |
Y1_INDEX
The bitmap height integer starts at index 12 of the header. |
static int |
Y2_INDEX
The end char integer starts at index 20 of the header. |
Constructor Summary | |
---|---|
GLF2Header(String filename,
int bitmapWidth,
int bitmapHeight,
int startChar,
int endChar)
Constructs a GLF2Header. |
Method Summary | |
---|---|
int |
getBitmapHeight()
Returns the height of the bitmap. |
int |
getBitmapWidth()
Returns the width of the bitmap. |
int |
getEndChar()
Returns the end char (the last character in the glyph set). |
String |
getFilename()
Returns the name of the '.glf' file the header is taken from. |
int |
getStartChar()
Returns the start char (the first character in the glyph set). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HEADER_BYTES
public static final int WIDTH_INDEX
public static final int HEIGHT_INDEX
public static final int START_INDEX
public static final int END_INDEX
public static final int CHAR_INFO_BYTES
public static final int X1_INDEX
public static final int Y1_INDEX
public static final int X2_INDEX
public static final int Y2_INDEX
public static final int BYTES_PER_PIXEL
Constructor Detail |
---|
public GLF2Header(String filename, int bitmapWidth, int bitmapHeight, int startChar, int endChar)
filename
- the name of the '.glf' file.bitmapWidth
- the width of the bitmap in the '.glf' file.bitmapHeight
- the height of the bitmap in the '.glf' file.startChar
- the first character in the '.glf' file.endChar
- the last character in the '.glf' file.Method Detail |
---|
public String getFilename()
public int getBitmapWidth()
public int getBitmapHeight()
public int getStartChar()
public int getEndChar()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |