From: <eg...@us...> - 2006-03-31 13:23:15
|
Revision: 507 Author: egonw Date: 2006-03-31 05:23:08 -0800 (Fri, 31 Mar 2006) ViewCVS: http://svn.sourceforge.net/bioclipse/?rev=507&view=rev Log Message: ----------- Use setSelectedPart() instead of highlight(). Modified Paths: -------------- trunk/bc_cdk/src/net/bioclipse/plugins/views/Structure2DView.java trunk/bc_cdk/src/net/bioclipse/plugins/views/twoDJframe.java Modified: trunk/bc_cdk/src/net/bioclipse/plugins/views/Structure2DView.java =================================================================== --- trunk/bc_cdk/src/net/bioclipse/plugins/views/Structure2DView.java 2006-03-30 20:00:46 UTC (rev 506) +++ trunk/bc_cdk/src/net/bioclipse/plugins/views/Structure2DView.java 2006-03-31 13:23:08 UTC (rev 507) @@ -221,7 +221,7 @@ } - panel2D.highlight(ac); + panel2D.getRendererModel().setSelectedPart(ac); Modified: trunk/bc_cdk/src/net/bioclipse/plugins/views/twoDJframe.java =================================================================== --- trunk/bc_cdk/src/net/bioclipse/plugins/views/twoDJframe.java 2006-03-30 20:00:46 UTC (rev 506) +++ trunk/bc_cdk/src/net/bioclipse/plugins/views/twoDJframe.java 2006-03-31 13:23:08 UTC (rev 507) @@ -108,21 +108,9 @@ display(size); } -// public void unHighlight() { -// r2dm.; -// } - public void highlight(IAtom atom) { - r2dm.setHighlightedAtom(atom); - repaint(); + public Renderer2DModel getRendererModel() { + return r2dm; } - public void highlight(IBond bond) { - r2dm.setHighlightedBond(bond); - repaint(); - } - public void highlight(IAtomContainer ac) { - r2dm.setSelectedPart(ac); - repaint(); - } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |