Drag'n'drop in diagrams

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?

Thanks,

Andre

2 comments

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 all,

I'd like to enable drag and drop in my diagram/view. Witch class from
com.intellij.openapi.graph have I to use?

Thanks,

Andre



0

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

0

Please sign in to leave a comment.