public class CharacterSetOrientation
extends java.lang.Object
Constructor and Description |
---|
CharacterSetOrientation(int orientation)
Constructor for the CharacterSetOrientation, the orientation is
expressed as the degrees rotation (i.e 0, 90, 180, 270)
|
Modifier and Type | Method and Description |
---|---|
int |
getAscender()
Ascender height is the distance from the character baseline to the
top of the character box.
|
int |
getCapHeight()
Cap height is the average height of the uppercase characters in
a font.
|
int |
getDescender()
Descender depth is the distance from the character baseline to
the bottom of a character box.
|
int |
getEmSpaceIncrement()
Returns the em space increment.
|
char |
getFirstChar()
The first character in the character set
|
char |
getLastChar()
The last character in the character set
|
int |
getOrientation()
The orientation for these metrics in the character set
|
int |
getSpaceIncrement()
Returns the space increment.
|
int |
getWidth(char character)
Get the width (in 1/1000ths of a point size) of the character
identified by the parameter passed.
|
int[] |
getWidths()
Get the width (in 1/1000ths of a point size) of all characters
in this character set.
|
int |
getXHeight()
XHeight refers to the height of the lower case letters above
the baseline.
|
void |
setAscender(int ascender)
Ascender height is the distance from the character baseline to the
top of the character box.
|
void |
setCapHeight(int capHeight)
Cap height is the average height of the uppercase characters in
a font.
|
void |
setDescender(int descender)
Descender depth is the distance from the character baseline to
the bottom of a character box.
|
void |
setEmSpaceIncrement(int value)
Sets the em space increment.
|
void |
setFirstChar(char firstChar)
The first character in the character set
|
void |
setLastChar(char lastChar)
The last character in the character set
|
void |
setSpaceIncrement(int value)
Sets the space increment.
|
void |
setWidth(char character,
int width)
Set the width (in 1/1000ths of a point size) of the character
identified by the parameter passed.
|
void |
setXHeight(int xHeight)
XHeight refers to the height of the lower case letters above
the baseline.
|
public CharacterSetOrientation(int orientation)
orientation
- the character set orientationpublic int getAscender()
public int getCapHeight()
public int getDescender()
public char getFirstChar()
public char getLastChar()
public int getOrientation()
public int[] getWidths()
public int getXHeight()
public int getWidth(char character)
character
- the Unicode character to evaluatepublic void setAscender(int ascender)
ascender
- the ascender to setpublic void setCapHeight(int capHeight)
capHeight
- the cap height to setpublic void setDescender(int descender)
descender
- the descender value in millipointspublic void setFirstChar(char firstChar)
firstChar
- the first characterpublic void setLastChar(char lastChar)
lastChar
- the last characterpublic void setWidth(char character, int width)
character
- the Unicode character for which the width is being setwidth
- the widths of the characterpublic void setXHeight(int xHeight)
xHeight
- the typical height of characterspublic int getSpaceIncrement()
public void setSpaceIncrement(int value)
value
- the space incrementpublic int getEmSpaceIncrement()
public void setEmSpaceIncrement(int value)
value
- the em space incrementCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.