| version 1.83 | version 1.84 |
|---|
| |
| // Copyright (c) 2001-2002 Board of Trustees of the University of Illinois | // Copyright (c) 2001-2002 Board of Trustees of the University of Illinois |
| // Theoretical Biophysics Group http://www.ks.uiuc.edu/ | // Theoretical Biophysics Group http://www.ks.uiuc.edu/ |
| // | // |
| // $Id: MolecGraphics.java,v 1.83 2002/10/14 15:18:16 mbach Exp $ | // $Id: MolecGraphics.java,v 1.84 2002/10/18 16:03:11 mbach Exp $ |
| // | // |
| | |
| import com.sun.j3d.utils.applet.MainFrame; | import com.sun.j3d.utils.applet.MainFrame; |
| |
| import javax.swing.*; | import javax.swing.*; |
| import javax.swing.event.*; | import javax.swing.event.*; |
| | |
| import com.sun.j3d.loaders.vrml97.*; // from vrml97.jar | //import com.sun.j3d.loaders.vrml97.*; // from vrml97.jar |
| import com.sun.j3d.loaders.Scene; | //import com.sun.j3d.loaders.Scene; |
| | |
| /** | /** |
| * Responsible for drawing and updating the molecule graphics. | * Responsible for drawing and updating the molecule graphics. |
| |
| /** Enumeration indicating Licorice drawing representation */ | /** Enumeration indicating Licorice drawing representation */ |
| public static final int MIX = 8; | public static final int MIX = 8; |
| /** Enumeration indicating a VRML scene */ | /** Enumeration indicating a VRML scene */ |
| public static final int VRML = 9; | //public static final int VRML = 9; |
| | |
| public static final int reps[] = { | public static final int reps[] = { |
| LINES, VDW, BONDS, CPK, TRACE, TUBE, LICORICE | LINES, VDW, BONDS, CPK, TRACE, TUBE, LICORICE |
| |
| return bg; | return bg; |
| } | } |
| | |
| public void loadVRMLFile(String file) { | /*public void loadVRMLFile(String file) { |
| // XXX This is duplicate code from createSceneGraph() | // XXX This is duplicate code from createSceneGraph() |
| // XXX Reuse that code. | // XXX Reuse that code. |
| String strVRMLClass = "com.sun.j3d.loaders.vrml97.VrmlLoader"; | String strVRMLClass = "com.sun.j3d.loaders.vrml97.VrmlLoader"; |
| |
| m_bgMainBranchGroup = objRoot; | m_bgMainBranchGroup = objRoot; |
| m_bgScene.addChild(m_bgMainBranchGroup); | m_bgScene.addChild(m_bgMainBranchGroup); |
| m_bgLoading.detach(); | m_bgLoading.detach(); |
| } | }*/ |
| | |
| | |
| /** Changes the background color | /** Changes the background color |