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 = lp;
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 x = sp.x + todrop.getWidth();
int cw = x - np.x;
int ch = np.y - sp.y;
todrop.setSize(cw, ch);
np.y = sp.y;
parent.setMascotLocation(np);
azimuth = getAzimuth(p, last_point);
last_point = lp;
return true;
}