From: Miguel <mig...@us...> - 2005-06-24 18:15:41
|
Update of /cvsroot/jmol/Jmol/src/org/jmol/viewer In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4827/src/org/jmol/viewer Modified Files: Viewer.java Log Message: implemented 'set hideNameInPopup true|false' Index: Viewer.java =================================================================== RCS file: /cvsroot/jmol/Jmol/src/org/jmol/viewer/Viewer.java,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- Viewer.java 24 Jun 2005 17:03:42 -0000 1.30 +++ Viewer.java 24 Jun 2005 18:15:29 -0000 1.31 @@ -1607,15 +1607,21 @@ } boolean ribbonBorder = false; - boolean getRibbonBorder() { return ribbonBorder; } - void setRibbonBorder(boolean borderOn) { this.ribbonBorder = borderOn; } + boolean hideNameInPopup = false; + boolean getHideNameInPopup() { + return hideNameInPopup; + } + void setHideNameInPopup(boolean hideNameInPopup) { + this.hideNameInPopup = hideNameInPopup; + } + public void setColorBond(Color color) { colorManager.setColorBond(color); setShapeColorProperty(JmolConstants.SHAPE_STICKS, color); @@ -1916,6 +1922,9 @@ * values could be shared * @param key * @return the boolean property + * mth 2005 06 24 + * and/or these property names should be interned strings + * so that we can just do == comparisions between strings ****************************************************************/ public boolean getBooleanProperty(String key) { @@ -1951,6 +1960,8 @@ return getTestFlag3(); if (key.equalsIgnoreCase("chainCaseSensitive")) return getChainCaseSensitive(); + if (key.equalsIgnoreCase("hideNameInPopup")) + return getHideNameInPopup(); System.out.println("viewer.getBooleanProperty(" + key + ") - unrecognized"); return false; @@ -1996,6 +2007,8 @@ { setChainCaseSensitive(value); return; } if (key.equalsIgnoreCase("ribbonBorder")) { setRibbonBorder(value); return; } + if (key.equalsIgnoreCase("hideNameInPopup")) + { setHideNameInPopup(value); return; } System.out.println("viewer.setBooleanProperty(" + key + "," + value + ") - unrecognized"); } |