addMouseListener(this);\r
addMouseMotionListener(this);\r
PaintRefresher.Register(this, ap.av.getSequenceSetId());\r
+ ToolTipManager.sharedInstance().registerComponent(this);\r
}\r
\r
\r
{\r
if(highlightNode!=null)\r
{\r
+ if (SwingUtilities.isRightMouseButton(evt))\r
+ {\r
+ Color col = JColorChooser.showDialog(this, "Select Background Colour",\r
+ highlightNode.color);\r
+\r
+ setColor(highlightNode, col);\r
+ }\r
+ else\r
if(evt.getClickCount()>1)\r
{\r
tree.swapNodes(highlightNode);\r
if (ob instanceof SequenceNode)\r
{\r
highlightNode = (SequenceNode) ob;\r
+ this.setToolTipText(\r
+ "<html>Left click to select leaves"\r
+ + "<br>Double-click to invert leaves"\r
+ + "<br>Right click to change colour");\r
repaint();\r
+\r
}\r
else\r
{\r
if (highlightNode != null)\r
{\r
highlightNode = null;\r
+ setToolTipText("");\r
repaint();\r
}\r
}\r