|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.font.GlyphImpl
GlyphImplementation
Constructor Summary | |
GlyphImpl()
Create a new object. |
|
GlyphImpl(Dimen h,
Dimen d,
Dimen w,
Dimen i)
Create a new object. |
Method Summary | |
void |
addKerning(Kerning kern)
Add kerning for the glyph. |
void |
addLigature(Ligature lig)
Add ligature for the glyph. |
Dimen |
getDepth()
depth |
FontByteArray |
getExternalFile()
|
Dimen |
getHeight()
|
Dimen |
getItalicCorrection()
|
Dimen |
getKerning(UnicodeChar uc)
Return the kerning for the glyph. |
Dimen |
getLeftSpace()
|
UnicodeChar |
getLigature(UnicodeChar uc)
Return the ligature as UnicodeChar ,
or null , if no ligature exists. |
java.lang.String |
getName()
|
java.lang.String |
getNumber()
|
Dimen |
getRightSpace()
|
Dimen |
getWidth()
|
void |
setDepth(Dimen d)
|
void |
setExternalFile(FontByteArray file)
|
void |
setHeight(Dimen h)
|
void |
setItalicCorrection(Dimen d)
|
void |
setLeftSpace(Dimen ls)
|
void |
setName(java.lang.String n)
|
void |
setNumber(java.lang.String nr)
|
void |
setRightSpace(Dimen rs)
|
void |
setWidth(Dimen w)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GlyphImpl()
public GlyphImpl(Dimen h, Dimen d, Dimen w, Dimen i)
h
- the hightd
- the depthw
- the widthi
- the italicMethod Detail |
public Dimen getDepth()
Glyph
getDepth
in interface Glyph
public void setDepth(Dimen d)
setDepth
in interface Glyph
d
- The depth to set.public Dimen getHeight()
getHeight
in interface Glyph
public void setHeight(Dimen h)
setHeight
in interface Glyph
h
- The height to set.public Dimen getItalicCorrection()
getItalicCorrection
in interface Glyph
public void setItalicCorrection(Dimen d)
setItalicCorrection
in interface Glyph
d
- the italic to set.public Dimen getWidth()
getWidth
in interface Glyph
public void setWidth(Dimen w)
setWidth
in interface Glyph
w
- The width to set.public java.lang.String getName()
getName
in interface Glyph
public void setName(java.lang.String n)
setName
in interface Glyph
n
- The name to set.public java.lang.String getNumber()
getNumber
in interface Glyph
public void setNumber(java.lang.String nr)
setNumber
in interface Glyph
nr
- The number to set.public void addKerning(Kerning kern)
addKerning
in interface Glyph
kern
- the kerningpublic Dimen getKerning(UnicodeChar uc)
getKerning
in interface Glyph
uc
- the following character
Dimen
public void addLigature(Ligature lig)
addLigature
in interface Glyph
lig
- the ligaturepublic UnicodeChar getLigature(UnicodeChar uc)
UnicodeChar
,
or null
, if no ligature exists.
If you get a ligature-character, then you MUST call the
method getligature()
twice, if a ligature with
more then two characters exist.
(e.g. f - ff - ffl)
getLigature
in interface Glyph
uc
- the following character
public FontByteArray getExternalFile()
getExternalFile
in interface Glyph
public void setExternalFile(FontByteArray file)
setExternalFile
in interface Glyph
file
- The externalfile to set.public Dimen getLeftSpace()
getLeftSpace
in interface Glyph
public void setLeftSpace(Dimen ls)
setLeftSpace
in interface Glyph
ls
- The leftSpace to set.public Dimen getRightSpace()
getRightSpace
in interface Glyph
public void setRightSpace(Dimen rs)
setRightSpace
in interface Glyph
rs
- The rightSpace to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |