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(java.awt.Shape clip) |
protected void |
endTextObject() |
java.util.List |
getTextRuns(org.apache.batik.bridge.TextNode node,
java.text.AttributedCharacterIterator aci) |
protected boolean |
isSupported(java.awt.Graphics2D g2d)
Indicates whether the given
Graphics2D instance if compatible with this text painter
implementation. |
protected void |
positionGlyph(java.awt.geom.Point2D prevPos,
java.awt.geom.Point2D glyphPos,
boolean reposition) |
protected void |
preparePainting(java.awt.Graphics2D g2d) |
protected void |
restoreGraphicsState() |
protected void |
saveGraphicsState() |
protected void |
setInitialTransform(java.awt.geom.AffineTransform transform) |
protected void |
writeGlyph(char glyph,
java.awt.geom.AffineTransform transform) |
protected void |
writeGlyphs(FOPGVTGlyphVector gv,
java.awt.geom.GeneralPath debugShapes) |
collectCharacters, computeTextRuns, getFontFamilyResolver, 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 java.util.List getTextRuns(org.apache.batik.bridge.TextNode node,
java.text.AttributedCharacterIterator aci)
getTextRuns in class org.apache.batik.bridge.StrokingTextPainterprotected boolean isSupported(java.awt.Graphics2D g2d)
Graphics2D instance if compatible with this text painter
implementation.isSupported in class NativeTextPainterg2d - the instance to checkprotected void preparePainting(java.awt.Graphics2D g2d)
preparePainting in class NativeTextPainterprotected void saveGraphicsState()
saveGraphicsState in class NativeTextPainterprotected void restoreGraphicsState()
restoreGraphicsState in class NativeTextPainterprotected void setInitialTransform(java.awt.geom.AffineTransform transform)
setInitialTransform in class NativeTextPainterprotected void clip(java.awt.Shape clip)
clip in class NativeTextPainterprotected void writeGlyphs(FOPGVTGlyphVector gv, java.awt.geom.GeneralPath debugShapes) throws java.io.IOException
writeGlyphs in class NativeTextPainterjava.io.IOExceptionprotected void beginTextObject()
beginTextObject in class NativeTextPainterprotected void endTextObject()
endTextObject in class NativeTextPainterprotected void positionGlyph(java.awt.geom.Point2D prevPos,
java.awt.geom.Point2D glyphPos,
boolean reposition)
positionGlyph in class NativeTextPainterprotected void writeGlyph(char glyph,
java.awt.geom.AffineTransform transform)
writeGlyph in class NativeTextPainterCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.