![]() |
CustomAndroidAPI
1.05
|
Public Member Functions | |
int | getCharWidth () |
void | setCharWidth (int charWidth) throws CustomException |
int | getCharHeight () |
void | setCharHeight (int charHeight) throws CustomException |
boolean | getEmphasized () |
void | setEmphasized (boolean bValue) |
boolean | getItalic () |
void | setItalic (boolean bValue) |
boolean | getUnderline () |
void | setUnderline (boolean bValue) throws CustomException |
int | getJustification () |
void | setJustification (int justification) throws CustomException |
void | setCharFontType (int charFontType) throws CustomException |
int | getCharFontType () |
void | setInternationalCharSet (int interCharSet) throws CustomException |
int | getInternationalCharSet () |
void | setInternationalCharSetString (String interCharSet) throws CustomException |
String | getInternationalCharSetString () |
Static Public Attributes | |
static final int | FONT_SIZE_X1 = 0 |
static final int | FONT_SIZE_X2 = 1 |
static final int | FONT_SIZE_X3 = 2 |
static final int | FONT_SIZE_X4 = 3 |
static final int | FONT_SIZE_X5 = 4 |
static final int | FONT_SIZE_X6 = 5 |
static final int | FONT_SIZE_X7 = 6 |
static final int | FONT_SIZE_X8 = 7 |
static final int | FONT_JUSTIFICATION_LEFT = 0 |
static final int | FONT_JUSTIFICATION_CENTER = 1 |
static final int | FONT_JUSTIFICATION_RIGHT = 2 |
static final int | FONT_TYPE_A = 0 |
static final int | FONT_TYPE_B = 1 |
static final int | FONT_CS_DEFAULT = 0 |
static final int | FONT_CS_RUSSIAN = 1 |
static final int | FONT_CS_TURKISH = 2 |
static final int | FONT_CS_EASTEEUROPE = 3 |
static final int | FONT_CS_ISRAELI = 4 |
static final int | FONT_CS_GREEK = 5 |
This the container class to hold various font attributes
|
inline |
Returns the font char type
|
inline |
Returns charHeight (FONT_SIZE_X1-FONT_SIZE_X8)
|
inline |
Returns charWidth (FONT_SIZE_X1-FONT_SIZE_X8)
|
inline |
Returns emphasized flag
|
inline |
Returns the international char set
|
inline |
Returns the canonical name of the charset
|
inline |
Returns italic flag
|
inline |
Return justification attribute
|
inline |
Returns the underline type
|
inline |
Sets the char font type
charFontType |
|
CustomException |
|
inline |
Sets the character height ratio. Min is FONT_SIZE_X1 and Max is FONT_SIZE_X8
charHeight | height ratio |
|
inline |
Sets the character width ratio. Min is FONT_SIZE_X1 and Max is FONT_SIZE_X8
charWidth | width ratio |
|
inline |
Set the emphasied flag. Default is false.
bValue | true to bold/emphasize the text |
|
inline |
Sets the international char set
interCharSet |
|
CustomException |
|
inline |
Sets the international char set (It works only if it was loaded on printer)
interCharSet | charset canonical name (Ex. "GB2312") |
CustomException |
|
inline |
Sets the italic flag. Default is false.
bValue | true to make the text italic else false |
|
inline |
Sets the justification attribute
justification |
|
CustomException |
|
inline |
Sets the underline attribute. Default is false
bValue | true to make the text underline else false |
CustomException |
|
static |
Indicates that the International Charset is Default
|
static |
Indicates that the International Charset is East Europe (PC852)
|
static |
Indicates that the International Charset is Greek (PC737)
|
static |
Indicates that the International Charset is Israeli (PC862)
|
static |
Indicates that the International Charset is Russian (PC866)
|
static |
Indicates that the International Charset is Turkish (PC857)
|
static |
Indicates that the Font Justification is Center
|
static |
Indicates that the Font Justification is Left
|
static |
Indicates that the Font Justification is Right
|
static |
Indicates that the Font Size is 1X
|
static |
Indicates that the Font Size is 2X
|
static |
Indicates that the Font Size is 3X
|
static |
Indicates that the Font Size is 4X
|
static |
Indicates that the Font Size is 5X
|
static |
Indicates that the Font Size is 6X
|
static |
Indicates that the Font Size is 7X
|
static |
Indicates that the Font Size is 8X
|
static |
Indicates that the Font Type is A
|
static |
Indicates that the Font Type is B