From: Michael T H. <mic...@us...> - 2003-02-01 18:47:53
|
Update of /cvsroot/jmol/Jmol/src/org/openscience/jmol/render In directory sc8-pr-cvs1:/tmp/cvs-serv11505/src/org/openscience/jmol/render Modified Files: AtomShape.java Log Message: splitting out java12 operations to allow operation under 1.1 browser JVMs Index: AtomShape.java =================================================================== RCS file: /cvsroot/jmol/Jmol/src/org/openscience/jmol/render/AtomShape.java,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -r1.53 -r1.54 *** AtomShape.java 21 Jan 2003 22:31:52 -0000 1.53 --- AtomShape.java 1 Feb 2003 18:47:49 -0000 1.54 *************** *** 230,237 **** } ! private static Rectangle rectTemp = new Rectangle(); ! private boolean isClipVisible(Rectangle clip) { int radius = diameter / 2; ! rectTemp.setRect(x - radius, y - radius, diameter, diameter); // note that this is not correct if the atom is selected // because the halo may be visible while the atom is not --- 230,241 ---- } ! static Rectangle rectTemp = new Rectangle(); ! boolean isClipVisible(Rectangle clip) { int radius = diameter / 2; ! rectTemp.x = x - radius; ! rectTemp.y = y - radius; ! rectTemp.width = diameter; ! rectTemp.height = diameter; ! // rectTemp.setRect(x - radius, y - radius, diameter, diameter); // note that this is not correct if the atom is selected // because the halo may be visible while the atom is not *************** *** 275,279 **** width += 10; height += 10; ! rectTemp.setRect(xMin, yMin, width, height); boolean visible = clip.intersects(rectTemp); /* --- 279,286 ---- width += 10; height += 10; ! rectTemp.x = xMin; ! rectTemp.y = yMin; ! rectTemp.width = width; ! rectTemp.height = height; boolean visible = clip.intersects(rectTemp); /* |