org.apache.batik.refimpl.gvt.renderer
Class StrokingTextPainter
java.lang.Object
|
+--org.apache.batik.refimpl.gvt.renderer.BasicTextPainter
|
+--org.apache.batik.refimpl.gvt.renderer.StrokingTextPainter
- All Implemented Interfaces:
- TextPainter
- public class StrokingTextPainter
- extends BasicTextPainter
More sophisticated implementation of TextPainter which
renders the attributed character iterator of a TextNode.
StrokingTextPainter includes support for stroke, fill, opacity,
text-decoration, and other attributes, but does not handle
explicit per-glyph positioning.
- See Also:
TextPainter
,
GVTAttributedCharacterIterator
Method Summary |
void |
paint(java.text.AttributedCharacterIterator aci,
java.awt.geom.Point2D location,
TextNode.Anchor anchor,
java.awt.Graphics2D g2d,
GraphicsNodeRenderContext context)
Paints the specified attributed character iterator using the
specified Graphics2D and rendering context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StrokingTextPainter
public StrokingTextPainter()
paint
public void paint(java.text.AttributedCharacterIterator aci,
java.awt.geom.Point2D location,
TextNode.Anchor anchor,
java.awt.Graphics2D g2d,
GraphicsNodeRenderContext context)
- Paints the specified attributed character iterator using the
specified Graphics2D and rendering context.
Note that the GraphicsNodeRenderContext contains a TextPainter
reference.
- Overrides:
paint
in class BasicTextPainter
- Parameters:
shape
- the shape to paintg2d
- the Graphics2D to usecontext
- rendering context.- See Also:
TextPainter
,
GraphicsNodeRenderContext
Copyright © 2000 Apache Software Foundation. All Rights Reserved.