insensa.controller
Class DropObjectOnImageListener

java.lang.Object
  extended by java.awt.dnd.DropTarget
      extended by insensa.controller.DropObjectOnImageListener
All Implemented Interfaces:
java.awt.dnd.DropTargetListener, java.io.Serializable, java.util.EventListener

public class DropObjectOnImageListener
extends java.awt.dnd.DropTarget
implements java.awt.dnd.DropTargetListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.dnd.DropTarget
java.awt.dnd.DropTarget.DropTargetAutoScroller
 
Field Summary
private  ExtensionManager exManager
           
private  CModel model
           
private static long serialVersionUID
           
private  CView view
           
 
Constructor Summary
DropObjectOnImageListener(CView view, CModel model)
           
 
Method Summary
 void drop(java.awt.dnd.DropTargetDropEvent dtde)
           
private  void executeConnectionViewer(java.util.List<ConnectionFileChanger> connectionList, Service selectedService, java.awt.Point startLocation)
           
 void executeInfoReaderViewer(java.util.List<InfoReader> infoReaderList, Service selectedService, java.awt.Point startLocation)
           
private  void executeRasterFileViewer(java.util.List<CRasterFileInformation> fileList, Service selectedService, java.awt.Point startLocation)
           
private  java.util.List<Service> getConnectionServiceList(java.util.List<ConnectionFileChanger> connectionList)
           
 java.util.List<Service> getFileServiceList(java.util.List<CRasterFileInformation> fileList)
           
private  java.util.List<Service> getInfoReaderServiceList(java.util.List<InfoReader> infoReaderList)
           
private  java.util.List<Service> getServiceList(java.util.List<ServiceList> serviceListList)
           
private  Service showSelectedService(java.util.List<Service> listOfServices, CView view, java.awt.Component parentComponent)
           
 
Methods inherited from class java.awt.dnd.DropTarget
addDropTargetListener, addNotify, clearAutoscroll, createDropTargetAutoScroller, createDropTargetContext, dragEnter, dragExit, dragOver, dropActionChanged, getComponent, getDefaultActions, getDropTargetContext, getFlavorMap, initializeAutoscrolling, isActive, removeDropTargetListener, removeNotify, setActive, setComponent, setDefaultActions, setFlavorMap, updateAutoscroll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.dnd.DropTargetListener
dragEnter, dragExit, dragOver, dropActionChanged
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

view

private CView view

exManager

private ExtensionManager exManager

model

private CModel model
Constructor Detail

DropObjectOnImageListener

public DropObjectOnImageListener(CView view,
                                 CModel model)
Parameters:
insensa.view -
model -
Method Detail

drop

public void drop(java.awt.dnd.DropTargetDropEvent dtde)
Specified by:
drop in interface java.awt.dnd.DropTargetListener
Overrides:
drop in class java.awt.dnd.DropTarget
See Also:
DropTarget.drop(java.awt.dnd.DropTargetDropEvent)

executeConnectionViewer

private void executeConnectionViewer(java.util.List<ConnectionFileChanger> connectionList,
                                     Service selectedService,
                                     java.awt.Point startLocation)
                              throws java.lang.ClassNotFoundException,
                                     java.lang.InstantiationException,
                                     java.lang.IllegalAccessException,
                                     java.io.IOException
Parameters:
connectionList -
selectedService -
startLocation -
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException

executeInfoReaderViewer

public void executeInfoReaderViewer(java.util.List<InfoReader> infoReaderList,
                                    Service selectedService,
                                    java.awt.Point startLocation)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException
Parameters:
infoReaderList -
selectedService -
startLocation -
Throws:
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException

executeRasterFileViewer

private void executeRasterFileViewer(java.util.List<CRasterFileInformation> fileList,
                                     Service selectedService,
                                     java.awt.Point startLocation)
                              throws java.lang.ClassNotFoundException,
                                     java.lang.InstantiationException,
                                     java.lang.IllegalAccessException,
                                     java.io.IOException
Parameters:
fileList -
selectedService -
startLocation -
Throws:
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException

getConnectionServiceList

private java.util.List<Service> getConnectionServiceList(java.util.List<ConnectionFileChanger> connectionList)
Parameters:
connectionList -
Returns:

getFileServiceList

public java.util.List<Service> getFileServiceList(java.util.List<CRasterFileInformation> fileList)
Parameters:
fileList -
Returns:

getInfoReaderServiceList

private java.util.List<Service> getInfoReaderServiceList(java.util.List<InfoReader> infoReaderList)
Parameters:
infoReaderList -
Returns:

getServiceList

private java.util.List<Service> getServiceList(java.util.List<ServiceList> serviceListList)
Parameters:
serviceListList -
Returns:

showSelectedService

private Service showSelectedService(java.util.List<Service> listOfServices,
                                    CView view,
                                    java.awt.Component parentComponent)
Parameters:
listOfServices -
insensa.view -
parentComponent -
Returns: