X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=srcjar%2Ffr%2Forsay%2Flri%2Fvarna%2Fapplications%2FnewGUI%2FVARNAGUITree.java;fp=srcjar%2Ffr%2Forsay%2Flri%2Fvarna%2Fapplications%2FnewGUI%2FVARNAGUITree.java;h=0000000000000000000000000000000000000000;hb=4f77328104498504339216829abf5ea87e2791ec;hp=0fd24682293f90faa5832ddb161063b1e3c17f98;hpb=2b8c0785318a3528e1876e8e2dd48b7d831eae69;p=jalview.git diff --git a/srcjar/fr/orsay/lri/varna/applications/newGUI/VARNAGUITree.java b/srcjar/fr/orsay/lri/varna/applications/newGUI/VARNAGUITree.java deleted file mode 100644 index 0fd2468..0000000 --- a/srcjar/fr/orsay/lri/varna/applications/newGUI/VARNAGUITree.java +++ /dev/null @@ -1,74 +0,0 @@ -package fr.orsay.lri.varna.applications.newGUI; - -import java.awt.Graphics; -import java.awt.Rectangle; -import java.awt.dnd.DragGestureEvent; -import java.awt.dnd.DragGestureListener; -import java.awt.dnd.DragGestureRecognizer; -import java.awt.dnd.DragSource; -import java.awt.dnd.MouseDragGestureRecognizer; -import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; - -import javax.swing.JComponent; -import javax.swing.JTree; -import javax.swing.plaf.basic.BasicTreeUI; -import javax.swing.tree.AbstractLayoutCache; -import javax.swing.tree.DefaultMutableTreeNode; -import javax.swing.tree.TreePath; - -public class VARNAGUITree extends JTree implements MouseListener { - private Watcher _w; - - - public VARNAGUITree(VARNAGUITreeModel m) - { - super(m); - _w = new Watcher(m ); - _w.start(); - } - - public DefaultMutableTreeNode getSelectedNode() - { - TreePath t = getSelectionPath(); - if (t!= null) - { - return (DefaultMutableTreeNode) t.getLastPathComponent(); - } - return null; - } - - public void mouseClicked(MouseEvent e) { - int x = e.getX(); - int y = e.getY(); - TreePath tp = this.getPathForLocation(x, y); - if (tp!=null) - { - DefaultMutableTreeNode n = (DefaultMutableTreeNode) tp.getLastPathComponent(); - - } - } - - public void mousePressed(MouseEvent e) { - // TODO Auto-generated method stub - - } - - public void mouseReleased(MouseEvent e) { - // TODO Auto-generated method stub - - } - - public void mouseEntered(MouseEvent e) { - // TODO Auto-generated method stub - - } - - public void mouseExited(MouseEvent e) { - // TODO Auto-generated method stub - - } - - - -}