|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.itextpdf.text.pdf.parser.TextRenderInfo
public class TextRenderInfo
Provides information and calculations needed by render listeners
to display/evaluate text render operations.
This is passed between the PdfContentStreamProcessor
and
RenderListener
objects as text rendering operations are
discovered
Method Summary | |
---|---|
LineSegment |
getAscentLine()
Gets the ascentline for the text (i.e. |
LineSegment |
getBaseline()
Gets the baseline for the text (i.e. |
List<TextRenderInfo> |
getCharacterRenderInfos()
Provides detail useful if a listener needs access to the position of each individual glyph in the text render operation |
LineSegment |
getDescentLine()
Gets the descentline for the text (i.e. |
DocumentFont |
getFont()
Getter for the font |
float |
getRise()
The rise represents how far above the nominal baseline the text should be rendered. |
float |
getSingleSpaceWidth()
|
String |
getText()
|
int |
getTextRenderMode()
|
boolean |
hasMcid(int mcid)
Checks if the text belongs to a marked content sequence with a given mcid. |
boolean |
hasMcid(int mcid,
boolean checkTheTopmostLevelOnly)
Checks if the text belongs to a marked content sequence with a given mcid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getText()
public boolean hasMcid(int mcid)
mcid
- a marked content id
public boolean hasMcid(int mcid, boolean checkTheTopmostLevelOnly)
mcid
- a marked content idcheckTheTopmostLevelOnly
- indicates whether to check the topmost level of marked content stack only
public LineSegment getBaseline()
getRise()
for the amount added by Rise
public LineSegment getAscentLine()
getRise()
for the amount added by Rise
public LineSegment getDescentLine()
getRise()
for the amount added by Rise
public DocumentFont getFont()
public float getRise()
getBaseline()
, getAscentLine()
and getDescentLine()
methods already include Rise.
This method is exposed to allow listeners to determine if an explicit rise was involved in the computation of the baseline (this might be useful, for example, for identifying superscript rendering)
public float getSingleSpaceWidth()
public int getTextRenderMode()
public List<TextRenderInfo> getCharacterRenderInfos()
TextRenderInfo
objects that represent each glyph used in the draw operation. The next effect is if there was a separate Tj opertion for each character in the rendered string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |