|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TextUnit
A single character or discrete character grouping positioned within a Line
.
Note that space characters are typically not encoded in PDF documents; rather, they
are implicit in the spacing between the bounding boxes of adjacent TextUnits.
Method Summary | |
---|---|
char[] |
getCharacterSequence()
Returns a character array indicating the characters that should be rendered for this TextUnit instead of the 'raw' character code provided by getCharCode() . |
int |
getCharCode()
Returns the 'raw' character code used to encode this TextUnit in the source PDF document. |
Font |
getFont()
Returns the Font that was in force when this textunit was outputted. |
float |
getTheta()
Returns the angle (in degrees) by which this TextUnit's baseline is rotated. |
boolean |
isStruckThrough()
Returns true if this TextUnit is struck through. |
boolean |
isUnderlined()
Returns true if this TextUnit is underlined. |
Methods inherited from interface com.snowtide.pdf.layout.Region |
---|
area, endxpos, endypos, height, width, xpos, ypos |
Method Detail |
---|
int getCharCode()
character sequence
be rendered instead of the Unicode character corresponding to the
character code returned by this function.
char[] getCharacterSequence()
getCharCode()
.
This function may return null, in which case the Unicode character
corresponding with the 'raw' character code should be used when rendering
this TextUnit.
Font getFont()
Font
that was in force when this textunit was outputted.
boolean isUnderlined()
boolean isStruckThrough()
float getTheta()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |