public class PSTextPainter extends NativeTextPainter
The text runs are split into smaller text runs that can be bundles in single calls of the xshow, yshow or xyshow operators. For outline text, the charpath operator is used.
fontInfo, logADJUST_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 |
|---|
PSTextPainter(FontInfo fontInfo)
Create a new PS text painter with the given font information.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isSupported(java.awt.Graphics2D g2d)
Indicates whether the given
Graphics2D instance if compatible with this text painter
implementation. |
protected void |
paintTextRun(org.apache.batik.gvt.renderer.StrokingTextPainter.TextRun textRun,
java.awt.Graphics2D g2d)
Paints a single text run.
|
collectCharacters, findFonts, logCharacter, logTextRun, paintTextRunsadjustChunkOffsets, computeTextRuns, createModifiedACIForFontMatching, getBounds2D, getDecorationOutline, getDecorationStrokeOutline, getHighlightShape, getInstance, getMark, getOutline, getSelected, getTextChunk, getTextChunkACIs, getTextRuns, hitTest, paint, paintDecorations, printAttrs, selectFirst, selectLastpublic PSTextPainter(FontInfo fontInfo)
fontInfo - the font collectionprotected boolean isSupported(java.awt.Graphics2D g2d)
Graphics2D instance if compatible with this text painter
implementation.isSupported in class NativeTextPainterg2d - the instance to checkprotected void paintTextRun(org.apache.batik.gvt.renderer.StrokingTextPainter.TextRun textRun,
java.awt.Graphics2D g2d)
throws java.io.IOException
paintTextRun in class NativeTextPaintertextRun - the text rung2d - the target Graphics2D instancejava.io.IOException - if an I/O error occurs while rendering the textCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.