|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.fonts.type1.AFMCharMetrics
public class AFMCharMetrics
Holds the metrics of a single character from an AFM file.
Constructor Summary | |
---|---|
AFMCharMetrics()
|
Method Summary | |
---|---|
java.awt.geom.RectangularShape |
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.geom.RectangularShape box)
Sets the character's bounding box. |
void |
setCharacter(NamedCharacter ch)
Sets the named character represented by this instance. |
void |
setCharacter(java.lang.String charName,
java.lang.String unicodeSequence)
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AFMCharMetrics()
Method Detail |
---|
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.geom.RectangularShape getBBox()
public void setBBox(java.awt.geom.RectangularShape box)
box
- the bounding boxpublic java.lang.String toString()
toString
in class java.lang.Object
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |