public class PDFFlowExtTextPainter extends NativeTextPainter
font, fontFamilyResolver, fontInfo, log, tpi
ADJUST_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 |
---|
PDFFlowExtTextPainter(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, reorderTextRuns
adjustChunkOffsets, computeTextRuns, createModifiedACIForFontMatching, getBounds2D, getDecorationOutline, getDecorationStrokeOutline, getHighlightShape, getInstance, getMark, getOutline, getSelected, getTextChunk, getTextChunkACIs, hitTest, paint, paintDecorations, printAttrs, selectFirst, selectLast
public PDFFlowExtTextPainter(FontInfo fontInfo)
fontInfo
- the font directorypublic List getTextRuns(org.apache.batik.bridge.TextNode node, AttributedCharacterIterator aci)
getTextRuns
in class org.apache.batik.bridge.StrokingTextPainter
protected boolean isSupported(Graphics2D g2d)
Graphics2D
instance if compatible with this text painter
implementation.isSupported
in class NativeTextPainter
g2d
- the instance to checkprotected void preparePainting(Graphics2D g2d)
preparePainting
in class NativeTextPainter
protected void saveGraphicsState()
saveGraphicsState
in class NativeTextPainter
protected void restoreGraphicsState()
restoreGraphicsState
in class NativeTextPainter
protected void setInitialTransform(AffineTransform transform)
setInitialTransform
in class NativeTextPainter
protected void clip(Shape clip)
clip
in class NativeTextPainter
protected void writeGlyphs(FOPGVTGlyphVector gv, GeneralPath debugShapes) throws IOException
writeGlyphs
in class NativeTextPainter
IOException
protected void beginTextObject()
beginTextObject
in class NativeTextPainter
protected void endTextObject()
endTextObject
in class NativeTextPainter
protected void positionGlyph(Point2D prevPos, Point2D glyphPos, boolean reposition)
positionGlyph
in class NativeTextPainter
protected void writeGlyph(char glyph, AffineTransform transform)
writeGlyph
in class NativeTextPainter
Copyright © 2025 Apache Software Foundation. All rights reserved.