protected void paintChild(Graphics2D g2, Component child) {
   Painter painter = PainterFactory.getPainter(child.getClass());
   painter.paint(g2, child);
 }