org.apache.fop.svg
Class PDFTextPainter

java.lang.Object
  |
  +--org.apache.fop.svg.PDFTextPainter
All Implemented Interfaces:
org.apache.batik.gvt.TextPainter

public class PDFTextPainter
extends java.lang.Object
implements org.apache.batik.gvt.TextPainter

Renders the attributed character iterator of a TextNode.

Version:
$Id: PDFTextPainter.java,v 1.7 2001/10/12 06:40:13 keiron Exp $
Author:
Keiron Liddle

Constructor Summary
PDFTextPainter(FontState fs)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds(org.apache.batik.gvt.TextNode node)
           
 java.awt.geom.Rectangle2D getDecoratedBounds(org.apache.batik.gvt.TextNode node)
           
 java.awt.Shape getDecoratedShape(org.apache.batik.gvt.TextNode node)
           
 java.awt.Shape getHighlightShape(org.apache.batik.gvt.text.Mark beginMark, org.apache.batik.gvt.text.Mark endMark)
           
 org.apache.batik.gvt.text.Mark getMark(org.apache.batik.gvt.TextNode node, int pos, boolean all)
           
 java.awt.geom.Rectangle2D getPaintedBounds(org.apache.batik.gvt.TextNode node)
           
 int[] getSelected(org.apache.batik.gvt.text.Mark start, org.apache.batik.gvt.text.Mark finish)
           
 java.awt.Shape getShape(org.apache.batik.gvt.TextNode node)
           
 float getStringWidth(java.lang.String str)
           
 void paint(org.apache.batik.gvt.TextNode node, java.awt.Graphics2D g2d)
          Paints the specified attributed character iterator using the specified Graphics2D and context and font context.
 org.apache.batik.gvt.text.Mark selectAll(double x, double y, org.apache.batik.gvt.TextNode node)
           
 org.apache.batik.gvt.text.Mark selectAt(double x, double y, org.apache.batik.gvt.TextNode node)
           
 org.apache.batik.gvt.text.Mark selectFirst(org.apache.batik.gvt.TextNode node)
           
 org.apache.batik.gvt.text.Mark selectLast(org.apache.batik.gvt.TextNode node)
           
 org.apache.batik.gvt.text.Mark selectTo(double x, double y, org.apache.batik.gvt.text.Mark beginMark)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFTextPainter

public PDFTextPainter(FontState fs)
Method Detail

paint

public void paint(org.apache.batik.gvt.TextNode node,
                  java.awt.Graphics2D g2d)
Paints the specified attributed character iterator using the specified Graphics2D and context and font context.
Specified by:
paint in interface org.apache.batik.gvt.TextPainter
Parameters:
node - the TextNode to paint
g2d - the Graphics2D to use
context - the rendering context.

getStringWidth

public float getStringWidth(java.lang.String str)

getMark

public org.apache.batik.gvt.text.Mark getMark(org.apache.batik.gvt.TextNode node,
                                              int pos,
                                              boolean all)
Specified by:
getMark in interface org.apache.batik.gvt.TextPainter

selectAt

public org.apache.batik.gvt.text.Mark selectAt(double x,
                                               double y,
                                               org.apache.batik.gvt.TextNode node)
Specified by:
selectAt in interface org.apache.batik.gvt.TextPainter

selectTo

public org.apache.batik.gvt.text.Mark selectTo(double x,
                                               double y,
                                               org.apache.batik.gvt.text.Mark beginMark)
Specified by:
selectTo in interface org.apache.batik.gvt.TextPainter

selectAll

public org.apache.batik.gvt.text.Mark selectAll(double x,
                                                double y,
                                                org.apache.batik.gvt.TextNode node)

selectFirst

public org.apache.batik.gvt.text.Mark selectFirst(org.apache.batik.gvt.TextNode node)
Specified by:
selectFirst in interface org.apache.batik.gvt.TextPainter

selectLast

public org.apache.batik.gvt.text.Mark selectLast(org.apache.batik.gvt.TextNode node)
Specified by:
selectLast in interface org.apache.batik.gvt.TextPainter

getSelected

public int[] getSelected(org.apache.batik.gvt.text.Mark start,
                         org.apache.batik.gvt.text.Mark finish)
Specified by:
getSelected in interface org.apache.batik.gvt.TextPainter

getHighlightShape

public java.awt.Shape getHighlightShape(org.apache.batik.gvt.text.Mark beginMark,
                                        org.apache.batik.gvt.text.Mark endMark)
Specified by:
getHighlightShape in interface org.apache.batik.gvt.TextPainter

getShape

public java.awt.Shape getShape(org.apache.batik.gvt.TextNode node)
Specified by:
getShape in interface org.apache.batik.gvt.TextPainter

getDecoratedShape

public java.awt.Shape getDecoratedShape(org.apache.batik.gvt.TextNode node)
Specified by:
getDecoratedShape in interface org.apache.batik.gvt.TextPainter

getBounds

public java.awt.geom.Rectangle2D getBounds(org.apache.batik.gvt.TextNode node)
Specified by:
getBounds in interface org.apache.batik.gvt.TextPainter

getDecoratedBounds

public java.awt.geom.Rectangle2D getDecoratedBounds(org.apache.batik.gvt.TextNode node)
Specified by:
getDecoratedBounds in interface org.apache.batik.gvt.TextPainter

getPaintedBounds

public java.awt.geom.Rectangle2D getPaintedBounds(org.apache.batik.gvt.TextNode node)
Specified by:
getPaintedBounds in interface org.apache.batik.gvt.TextPainter


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.