CSSFigure cssfigure = (CSSFigure) getOwner().getFigure();
List fragments = cssfigure.getFragmentsForRead();
for (int i = 0, size = fragments.size(); i < size; i++) {
// the rectangle.
Figure childFigure = new BorderFigure();
childFigure.setBorder(new LineBorder(1));
this.add(childFigure);
FlowBox box = (FlowBox) fragments.get(i);
Rectangle rect = new Rectangle(box.getX(), box.getY(), box.getWidth(), box
.getHeight());