com.change_vision.jude.api.inf.view
Class DiagramDropTargetListener

com.change_vision.jude.api.inf.view.DiagramDropTargetListener
All Implemented Interfaces:
DropTargetListener

public class DiagramDropTargetListener
implements DropTargetListener

Listener for the drop event on the diagram. This listener is used when Astah models/external models are dropped on the diagram.


Method Summary
 void DiagramDropTargetListener(IDiagram target)
          Constructor
 void dropExternalData(DropTargetDropEvent dtde)
          This method is called when external models are dropped.
 void dropModels(DropTargetDropEvent dtde, Set<E> models)
          This method is called when Astah models are dropped.
 IDiagram getTarget()
          Get the target diagram.
 

Method Detail

DiagramDropTargetListener

public void DiagramDropTargetListener(IDiagram target)
Constructor

Parameters:
target - Target diagram

dropModels

public void dropModels(DropTargetDropEvent dtde,
                       Set<E> models)
This method is called when Astah models are dropped.

Parameters:
DropTargetDropEvent - Drop event on the diagram
models - Droped Models

dropExternalData

public void dropExternalData(DropTargetDropEvent dtde)
This method is called when external models are dropped.

Parameters:
DropTargetDropEvent - Drop event on the diagram

getTarget

public IDiagram getTarget()
Get the target diagram.

Returns:
Diagram model