super(layout, tracingAdapter,op, container);
}
public boolean dragOver(Point p) {
CompositeAdapter parent = (CompositeAdapter) WidgetAdapter.getWidgetAdapter(container);
JComponent todrop = (JComponent)tracingAdapter.getWidget();
Point lp = p;
if (last_point == null) {
last_point = p;
adapter.setHovered(true);
return false;
}
if (lp.equals(last_point))
return false;
pair = calculateMascotLocation(todrop, lp, azimuth);
Point np = pair == null ? lp : new Point(pair.vQuart == null ? lp.x : pair.vQuart.masc, pair.hQuart == null ? lp.y : pair.hQuart.masc);
Point sp = parent.getMascotLocation();
int cw = np.x - sp.x;
int ch = np.y - sp.y;
todrop.setSize(cw, ch);
azimuth = getAzimuth(p, last_point);
last_point = p;