edu.stanford.smi.protegex.owl.ui.individuals
Class IndividualsClassesTreeTarget

java.lang.Object
  extended byedu.stanford.smi.protege.util.TreeTarget
      extended byedu.stanford.smi.protegex.owl.ui.individuals.IndividualsClassesTreeTarget
All Implemented Interfaces:
DropTargetListener, EventListener

class IndividualsClassesTreeTarget
extends edu.stanford.smi.protege.util.TreeTarget

The target side handler for drag and drop operations on the InstancesTab. The drop operation can only occur on a class (to change the direct type of the dragged instance).

Author:
Ray Fergerson

Field Summary
 
Fields inherited from class edu.stanford.smi.protege.util.TreeTarget
 
Constructor Summary
IndividualsClassesTreeTarget()
           
 
Method Summary
private  boolean confirm(JComponent c, Collection instances)
           
 boolean doDrop(JTree tree, Collection sources, int row, Object area)
           
 boolean doDrop(JTree tree, Object source, int row, Object area)
           
 
Methods inherited from class edu.stanford.smi.protege.util.TreeTarget
dragEnter, dragExit, dragOver, drop, dropActionChanged, getLastDropSucceeded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndividualsClassesTreeTarget

public IndividualsClassesTreeTarget()
Method Detail

confirm

private boolean confirm(JComponent c,
                        Collection instances)

doDrop

public boolean doDrop(JTree tree,
                      Object source,
                      int row,
                      Object area)

doDrop

public boolean doDrop(JTree tree,
                      Collection sources,
                      int row,
                      Object area)