view.paintImmediately(visRect.x, visRect.y, visRect.width, visRect.height);
g2.drawImage(dragImage,
AffineTransform.getTranslateInstance(point.getLocation().getX(),
point.getLocation().getY()),
null);
LayoutCalculator calc = UpdateNodeTask.getInstance().getLastScore().layoutCalculator;
SimpleNode nd = calc.getElementAtPoint(point.x, point.y);
current = nd;
updateView();
// NetbeansTextEditor.getInstance().selectPosition(nd);
return ConnectorState.ACCEPT;
}
public void accept(Widget widget, Point point, Transferable transferable) {
Image image = getImageFromTransferable(transferable);
try {
Object o = null;
PaletteItem pal = (PaletteItem) transferable.getTransferData(ActiveEditorDrop.FLAVOR);
LayoutCalculator calc = UpdateNodeTask.getInstance().getLastScore().layoutCalculator;
SimpleNode el = calc.getElementAtPoint(point.x, point.y);
if (el == null) {
return;
}