|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faceless.pdf2.PDFGlyphVector
public abstract class PDFGlyphVector
A PDFGlyphVector is a sequence of glyphs in a particular font. It's a very
low-level class and most likely the LayoutBox is a better option,
but if there's a requirement to get text onto the page as fast as possible
without any layout then this class can be used. A quick example:
PDFStyle style = ...
PDFGlyphVector vector = style.createGlyphVector("Hello World", Locale.getDefault());
canvas.drawGlyphVector(vector, x, y);
PDFStyle.createGlyphVector(java.lang.String, java.util.Locale),
PDFCanvas.drawGlyphVector(org.faceless.pdf2.PDFGlyphVector, float, float)| Method Summary | |
|---|---|
int |
getNumGlyphs()
Returns the number of glyphs in this PDFGlyphVector |
PDFStyle |
getStyle()
Returns the style that created these glyphs. |
float |
getWidth()
Returns the width of this PDFGlyphVector in points |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public PDFStyle getStyle()
public int getNumGlyphs()
public float getWidth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||