1 18 package org.apache.batik.gvt; 19 20 import java.awt.Graphics2D ; 21 import java.awt.Shape ; 22 import java.awt.geom.Rectangle2D ; 23 24 import org.apache.batik.gvt.text.Mark; 25 26 32 public interface TextPainter { 33 34 41 void paint(TextNode node, Graphics2D g2d); 42 43 47 Mark selectAt(double x, double y, TextNode node); 48 49 53 Mark selectTo(double x, double y, Mark beginMark); 54 55 58 Mark selectFirst(TextNode node); 59 60 61 64 Mark selectLast(TextNode node); 65 66 72 Mark getMark(TextNode node, int index, boolean beforeGlyph); 73 74 82 int[] getSelected(Mark start, Mark finish); 83 84 85 94 Shape getHighlightShape(Mark beginMark, Mark endMark); 95 96 101 Shape getOutline(TextNode node); 102 103 108 Rectangle2D getBounds2D(TextNode node); 109 110 115 Rectangle2D getGeometryBounds(TextNode node); 116 } 117 118 | Popular Tags |