public class PDFFlowTextPainter extends NativeTextPainter
font, fontFamilyResolver, fontInfo, log, tpiADJUST_ALL, ADJUST_SPACING, ALT_GLYPH_HANDLER, ANCHOR_TYPE, BIDI_LEVEL, FLOW_PARAGRAPH, FLOW_REGIONS, GVT_FONT, GVT_FONTS, PAINT_INFO, singleton, TEXT_COMPOUND_ID, TEXTPATH, WRITING_MODE, WRITING_MODE_RTL, WRITING_MODE_TTB, XPOS, YPOS| Constructor and Description |
|---|
PDFFlowTextPainter(FontInfo fontInfo)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginTextObject() |
protected void |
clip(Shape clip) |
protected void |
endTextObject() |
List |
getTextRuns(org.apache.batik.bridge.TextNode node,
AttributedCharacterIterator aci) |
protected boolean |
isSupported(Graphics2D g2d)
Indicates whether the given
Graphics2D instance if compatible with this text painter
implementation. |
protected void |
positionGlyph(Point2D prevPos,
Point2D glyphPos,
boolean reposition) |
protected void |
preparePainting(Graphics2D g2d) |
protected void |
restoreGraphicsState() |
protected void |
saveGraphicsState() |
protected void |
setInitialTransform(AffineTransform transform) |
protected void |
writeGlyph(char glyph,
AffineTransform transform) |
protected void |
writeGlyphs(FOPGVTGlyphVector gv,
GeneralPath debugShapes) |
collectCharacters, computeTextRuns, getFontFamilyResolver, getLocalTransform, getTextLayoutFactory, getTextRunBoundaryAttributes, logCharacter, logTextRun, paintTextRun, paintTextRuns, reorderTextRunsadjustChunkOffsets, computeTextRuns, createModifiedACIForFontMatching, getBounds2D, getDecorationOutline, getDecorationStrokeOutline, getHighlightShape, getInstance, getMark, getOutline, getSelected, getTextChunk, getTextChunkACIs, hitTest, paint, paintDecorations, printAttrs, selectFirst, selectLastpublic PDFFlowTextPainter(FontInfo fontInfo)
fontInfo - the font directorypublic List getTextRuns(org.apache.batik.bridge.TextNode node, AttributedCharacterIterator aci)
getTextRuns in class org.apache.batik.bridge.StrokingTextPainterprotected boolean isSupported(Graphics2D g2d)
Graphics2D instance if compatible with this text painter
implementation.isSupported in class NativeTextPainterg2d - the instance to checkprotected void preparePainting(Graphics2D g2d)
preparePainting in class NativeTextPainterprotected void saveGraphicsState()
saveGraphicsState in class NativeTextPainterprotected void restoreGraphicsState()
restoreGraphicsState in class NativeTextPainterprotected void setInitialTransform(AffineTransform transform)
setInitialTransform in class NativeTextPainterprotected void clip(Shape clip)
clip in class NativeTextPainterprotected void writeGlyphs(FOPGVTGlyphVector gv, GeneralPath debugShapes) throws IOException
writeGlyphs in class NativeTextPainterIOExceptionprotected void beginTextObject()
beginTextObject in class NativeTextPainterprotected void endTextObject()
endTextObject in class NativeTextPainterprotected void positionGlyph(Point2D prevPos, Point2D glyphPos, boolean reposition)
positionGlyph in class NativeTextPainterprotected void writeGlyph(char glyph,
AffineTransform transform)
writeGlyph in class NativeTextPainterCopyright © 2025 Apache Software Foundation. All rights reserved.