org.apache.batik.gvt.flow
Class FlowTextPainter

java.lang.Object
  extended byorg.apache.batik.gvt.renderer.BasicTextPainter
      extended byorg.apache.batik.gvt.renderer.StrokingTextPainter
          extended byorg.apache.batik.gvt.flow.FlowTextPainter
All Implemented Interfaces:
TextPainter

public class FlowTextPainter
extends StrokingTextPainter

One line Class Desc Complete Class Desc


Nested Class Summary
 
Nested classes inherited from class org.apache.batik.gvt.renderer.StrokingTextPainter
StrokingTextPainter.TextRun
 
Nested classes inherited from class org.apache.batik.gvt.renderer.BasicTextPainter
BasicTextPainter.BasicMark
 
Field Summary
static AttributedCharacterIterator.Attribute FLOW_LINE_BREAK
           
static AttributedCharacterIterator.Attribute FLOW_REGIONS
           
static AttributedCharacterIterator.Attribute GVT_FONT
           
static AttributedCharacterIterator.Attribute LINE_HEIGHT
           
protected static TextPainter singleton
          A unique instance of this class.
static char SOFT_HYPHEN
           
static char SPACE
           
protected static Set szAtts
           
static AttributedCharacterIterator.Attribute WORD_LIMIT
           
static char ZERO_WIDTH_JOINER
           
static char ZERO_WIDTH_SPACE
           
 
Fields inherited from class org.apache.batik.gvt.renderer.StrokingTextPainter
ADJUST_ALL, ADJUST_SPACING, ALT_GLYPH_HANDLER, ANCHOR_TYPE, BIDI_LEVEL, FLOW_PARAGRAPH, GVT_FONTS, PAINT_INFO, TEXT_COMPOUND_ID, TEXTPATH, WRITING_MODE, WRITING_MODE_RTL, WRITING_MODE_TTB, XPOS, YPOS
 
Fields inherited from class org.apache.batik.gvt.renderer.BasicTextPainter
aaOffFontRenderContext, fontRenderContext
 
Constructor Summary
FlowTextPainter()
           
 
Method Summary
static TextPainter getInstance()
          Returns a unique instance of this class.
 List getTextRuns(TextNode node, AttributedCharacterIterator aci)
           
static boolean textWrap(AttributedCharacterIterator[] acis, List chunkLayouts, List flowRects, FontRenderContext frc)
           
 
Methods inherited from class org.apache.batik.gvt.renderer.StrokingTextPainter
adjustChunkOffsets, computeTextRuns, createModifiedACIForFontMatching, getBounds2D, getDecorationOutline, getDecorationStrokeOutline, getHighlightShape, getMark, getOutline, getSelected, getTextChunk, getTextChunkACIs, hitTest, paint, paintDecorations, paintTextRuns, printAttrs, selectFirst, selectLast
 
Methods inherited from class org.apache.batik.gvt.renderer.BasicTextPainter
getGeometryBounds, getTextLayoutFactory, selectAt, selectTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static TextPainter singleton
A unique instance of this class.


SOFT_HYPHEN

public static final char SOFT_HYPHEN
See Also:
Constant Field Values

ZERO_WIDTH_SPACE

public static final char ZERO_WIDTH_SPACE
See Also:
Constant Field Values

ZERO_WIDTH_JOINER

public static final char ZERO_WIDTH_JOINER
See Also:
Constant Field Values

SPACE

public static final char SPACE
See Also:
Constant Field Values

WORD_LIMIT

public static final AttributedCharacterIterator.Attribute WORD_LIMIT

FLOW_REGIONS

public static final AttributedCharacterIterator.Attribute FLOW_REGIONS

FLOW_LINE_BREAK

public static final AttributedCharacterIterator.Attribute FLOW_LINE_BREAK

LINE_HEIGHT

public static final AttributedCharacterIterator.Attribute LINE_HEIGHT

GVT_FONT

public static final AttributedCharacterIterator.Attribute GVT_FONT

szAtts

protected static Set szAtts
Constructor Detail

FlowTextPainter

public FlowTextPainter()
Method Detail

getInstance

public static TextPainter getInstance()
Returns a unique instance of this class.


getTextRuns

public List getTextRuns(TextNode node,
                        AttributedCharacterIterator aci)
Overrides:
getTextRuns in class StrokingTextPainter

textWrap

public static boolean textWrap(AttributedCharacterIterator[] acis,
                               List chunkLayouts,
                               List flowRects,
                               FontRenderContext frc)


Copyright © 2009 Apache Software Foundation. All Rights Reserved.