Insets insets = container.getInsets();
WidgetAdapter dropAdapter = tracingAdapter;
JComponent drop = (JComponent) dropAdapter.getParentContainer();
QuartetPair pair = calMascotLocation(drop, p, azimuth);
Point hot = dropAdapter.getHotspotPoint();
Spring spring = new Spring(10, 10);// TODO should be replaced by a
// container gap.
if (pair == null) {
Point np = new Point(p.x - hot.x, p.y - hot.y);
Constraints constraints = new Constraints(new Leading(np.x
- insets.left, drop.getWidth(), spring), new Leading(np.y