drawLine(x, y + h - offset, x + w - adj, y + h - offset);
}
}
public void paintReplacedElement(RenderingContext c, BlockBox box) {
ReplacedElement replaced = box.getReplacedElement();
if (replaced instanceof SwingReplacedElement) {
Rectangle contentBounds = box.getContentAreaEdge(box.getAbsX(), box.getAbsY(), c);
translate(contentBounds.x, contentBounds.y);
JComponent component = ((SwingReplacedElement)box.getReplacedElement()).getJComponent();
component.print(_graphics);
translate(-contentBounds.x, -contentBounds.y);
} else if (replaced instanceof ImageReplacedElement) {
Image image = ((ImageReplacedElement)replaced).getImage();
Point location = replaced.getLocation();
_graphics.drawImage(
image, (int)location.getX(), (int)location.getY(), null);
}
}