316317318319320321322323324325
Point hs = adapter.getHotspotPoint(); int x = e.x - hs.x; int y = e.y - hs.y; Graphics clipg = g.create(x - 1, y - 1, w + 2, h + 2); IPainter painter = (IPainter) adapter.getAdapter(IPainter.class); painter.paintMascot(clipg); clipg.dispose(); } } }