|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.graphics.text.VectorTextCharacterSet
public class VectorTextCharacterSet
Defines the vector character set for rending scalable vector graphics of text strings.
| Field Summary | |
|---|---|
(package private) static int |
CHAR_MAX
the highest supported ASCII character |
(package private) static int |
CHAR_MIN
the lowest supported ASCII character |
(package private) static int[][][] |
CHAR_SET
the vector character set, where each character is represented as a series of vector lines in a 5x9 grid. |
(package private) static int |
CHAR_UNDEFINED
the character code for an undefined mapping |
(package private) static int |
MATRIX_HEIGHT_WITH_DESCENDERS
the height of the vector matrix for characters with descenders |
(package private) static int |
MATRIX_HEIGHT_WITHOUT_DESCENDERS
the height of the vector matrix for characters without descenders |
(package private) static int |
MATRIX_WIDTH
the width of the vector matrix |
(package private) static int |
X1
the array index of x start for a line segment |
(package private) static int |
X2
the array index of x end for a line segment |
(package private) static int |
Y1
the array index of y start for a line segment |
(package private) static int |
Y2
the array index of y end for a line segment |
| Constructor Summary | |
|---|---|
VectorTextCharacterSet()
|
|
| Method Summary | |
|---|---|
(package private) static int |
getCharacterIndex(char textChar)
Maps a character to its representation in the vector array. |
static int |
getMatrixHeight(boolean areDescendersIgnored)
Gets the base height of all characters without considering any scaling. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int CHAR_MAX
static final int CHAR_MIN
static final int[][][] CHAR_SET
static final int CHAR_UNDEFINED
static final int MATRIX_HEIGHT_WITH_DESCENDERS
static final int MATRIX_HEIGHT_WITHOUT_DESCENDERS
static final int MATRIX_WIDTH
static final int X1
static final int X2
static final int Y1
static final int Y2
| Constructor Detail |
|---|
public VectorTextCharacterSet()
| Method Detail |
|---|
static int getCharacterIndex(char textChar)
textChar - - the character
public static int getMatrixHeight(boolean areDescendersIgnored)
areDescendersIgnored - - whether to consider descenders as part of the height. Purely uppercase characters may align
better in certain cases (like with a background) when descenders are ignored
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||