drag&drop support isn't included in graph open api yet. i think it'll be added in the nearest future...
of course, you can add drag target in graph component(java.awt.dnd): new DropTarget(myBuilder.getView().getCanvasComponent(), new DropTargetListener() {...}); but it'll not synchronized with inner graph data model
what kinds of DragSource do you need? (ProjectView, StructureView, etc..)
Have you implemented any diagramm? Is graph api easy to use?
Serega.
Hi all,
I'd like to enable drag and drop in my diagram/view. Witch class from com.intellij.openapi.graph have I to use?
I'm using your struts diagram example as a start point. The main problem for me is the lack of documentation (I have to study the code to understand the example and it's not so easy).
Hi Andre,
drag&drop support isn't included in graph open api yet. i think it'll be
added in the nearest future...
of course, you can add drag target in graph component(java.awt.dnd):
new DropTarget(myBuilder.getView().getCanvasComponent(), new DropTargetListener()
{...});
but it'll not synchronized with inner graph data model
what kinds of DragSource do you need? (ProjectView, StructureView, etc..)
Have you implemented any diagramm? Is graph api easy to use?
Serega.
Hi Sergey,
I'm using your struts diagram example as a start point. The main problem for me is the lack of documentation (I have to study the code to understand the example and it's not so easy).
I'd like to drop elements from a tool window.
Thanks (again) for your attention,
Andre