public void renderImage(ImageRenderInfo info) {}
public void renderText(TextRenderInfo info)
{
if(info.getText().toLowerCase().trim().equals(target.toLowerCase().trim()))
{
Vector bottomLeft = info.getDescentLine().getStartPoint();
Vector topRight = info.getAscentLine().getEndPoint();
rect = new Rectangle(bottomLeft.get(Vector.I1),
bottomLeft.get(Vector.I2),
topRight.get(Vector.I1),
topRight.get(Vector.I2));
matches.add(new Object[]{rect, null});
}
}