private void paintHoveredAdapter(Graphics g, CompositeAdapter hovered) {
Component jpar = hovered.getWidget();
if (hovered.isRoot())
jpar = hovered.getRootPane();
IPainter painter = (IPainter) hovered.getAdapter(IPainter.class);
if (hovered.needGlobalGraphics()) {
painter.paintHovered(g);
} else {
Rectangle local = SwingUtilities.getLocalBounds(jpar);
Rectangle pub = SwingUtilities.convertRectangle(jpar, local, designer);
Graphics clipg = g.create(pub.x, pub.y, pub.width + 1, pub.height + 1);
painter.paintHovered(clipg);
clipg.dispose();
}
}