public class AFMCharMetrics
extends java.lang.Object
Constructor | Description |
---|---|
AFMCharMetrics() |
Modifier and Type | Method | Description |
---|---|---|
java.awt.Rectangle |
getBBox() |
Returns the character's bounding box.
|
NamedCharacter |
getCharacter() |
Returns the named character represented by this instance.
|
int |
getCharCode() |
Returns the character code.
|
java.lang.String |
getCharName() |
Returns the PostScript character name.
|
java.lang.String |
getUnicodeSequence() |
Returns the Unicode sequence for this character.
|
double |
getWidthX() |
Returns the progression dimension in x-direction.
|
double |
getWidthY() |
Returns the progression dimension in y-direction.
|
boolean |
hasCharCode() |
Indicates whether the character has a character code, i.e.
|
void |
setBBox(java.awt.Rectangle box) |
Sets the character's bounding box.
|
void |
setCharacter(java.lang.String charName,
java.lang.String unicodeSequence) |
Sets the named character represented by this instance.
|
void |
setCharacter(NamedCharacter ch) |
Sets the named character represented by this instance.
|
void |
setCharCode(int charCode) |
Sets the character code.
|
void |
setWidthX(double widthX) |
Sets the progression dimension in x-direction
|
void |
setWidthY(double widthY) |
Sets the progression dimension in y-direction
|
java.lang.String |
toString() |
public int getCharCode()
public boolean hasCharCode()
public void setCharCode(int charCode)
charCode
- the charCode to setpublic NamedCharacter getCharacter()
public void setCharacter(NamedCharacter ch)
ch
- the named characterpublic void setCharacter(java.lang.String charName, java.lang.String unicodeSequence)
charName
- the character name (as defined in the Adobe glyph list)unicodeSequence
- the Unicode sequencepublic java.lang.String getUnicodeSequence()
public java.lang.String getCharName()
public double getWidthX()
public void setWidthX(double widthX)
widthX
- the widthX to setpublic double getWidthY()
public void setWidthY(double widthY)
widthY
- the widthY to setpublic java.awt.Rectangle getBBox()
public void setBBox(java.awt.Rectangle box)
box
- the bounding boxpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.