|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.graphic.batik.PDFTextPainter
public class PDFTextPainter
Implementation of the Batik TextPainter
that handles the drawing of
text for SVG.
Constructor Summary | |
---|---|
PDFTextPainter(org.axsl.font.FontConsumer consumer,
org.apache.commons.logging.Log logger)
Constructor. |
Method Summary | |
---|---|
Rectangle2D |
getBounds2D(org.apache.batik.gvt.TextNode node)
|
Rectangle2D |
getGeometryBounds(org.apache.batik.gvt.TextNode node)
|
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)
|
Shape |
getOutline(org.apache.batik.gvt.TextNode node)
|
int[] |
getSelected(org.apache.batik.gvt.text.Mark start,
org.apache.batik.gvt.text.Mark finish)
|
protected String |
getText(AttributedCharacterIterator aci)
Converts the text in an AttributedCharacterIterator into a String. |
void |
paint(org.apache.batik.gvt.TextNode node,
Graphics2D g2d)
|
protected Point2D |
paintACI(AttributedCharacterIterator aci,
Graphics2D g2d,
Point2D loc)
Paints an AttributedCharacterIterator. |
protected Point2D |
paintTextRun(org.apache.batik.gvt.renderer.StrokingTextPainter.TextRun run,
Graphics2D g2d,
Point2D loc)
Paints a text runs. |
protected void |
paintTextRuns(List<?> textRuns,
Graphics2D g2d,
Point2D loc)
Paints a set of text runs. |
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 |
---|
public PDFTextPainter(org.axsl.font.FontConsumer consumer, org.apache.commons.logging.Log logger)
consumer
- The FontConsumer that should be used for font resolution.logger
- The logger.Method Detail |
---|
public void paint(org.apache.batik.gvt.TextNode node, Graphics2D g2d)
paint
in interface org.apache.batik.gvt.TextPainter
protected void paintTextRuns(List<?> textRuns, Graphics2D g2d, Point2D loc)
textRuns
- The text runs to paint.g2d
- The graphics environment.loc
- The location at which the text items should be painted.protected Point2D paintTextRun(org.apache.batik.gvt.renderer.StrokingTextPainter.TextRun run, Graphics2D g2d, Point2D loc)
run
- The text run to paint.g2d
- The graphics environment.loc
- The location at which the text item should be painted.
protected String getText(AttributedCharacterIterator aci)
aci
- The iterator containing the needed text.
protected Point2D paintACI(AttributedCharacterIterator aci, Graphics2D g2d, Point2D loc)
aci
- The iterator whose content should be painted.g2d
- The graphics environment.loc
- The location at which the text should be painted.
public org.apache.batik.gvt.text.Mark getMark(org.apache.batik.gvt.TextNode node, int pos, boolean all)
getMark
in interface org.apache.batik.gvt.TextPainter
public org.apache.batik.gvt.text.Mark selectAt(double x, double y, org.apache.batik.gvt.TextNode node)
selectAt
in interface org.apache.batik.gvt.TextPainter
public org.apache.batik.gvt.text.Mark selectTo(double x, double y, org.apache.batik.gvt.text.Mark beginMark)
selectTo
in interface org.apache.batik.gvt.TextPainter
public org.apache.batik.gvt.text.Mark selectFirst(org.apache.batik.gvt.TextNode node)
selectFirst
in interface org.apache.batik.gvt.TextPainter
public org.apache.batik.gvt.text.Mark selectLast(org.apache.batik.gvt.TextNode node)
selectLast
in interface org.apache.batik.gvt.TextPainter
public int[] getSelected(org.apache.batik.gvt.text.Mark start, org.apache.batik.gvt.text.Mark finish)
getSelected
in interface org.apache.batik.gvt.TextPainter
public Shape getHighlightShape(org.apache.batik.gvt.text.Mark beginMark, org.apache.batik.gvt.text.Mark endMark)
getHighlightShape
in interface org.apache.batik.gvt.TextPainter
public Rectangle2D getBounds2D(org.apache.batik.gvt.TextNode node)
getBounds2D
in interface org.apache.batik.gvt.TextPainter
public Rectangle2D getGeometryBounds(org.apache.batik.gvt.TextNode node)
getGeometryBounds
in interface org.apache.batik.gvt.TextPainter
public Shape getOutline(org.apache.batik.gvt.TextNode node)
getOutline
in interface org.apache.batik.gvt.TextPainter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |