25262728293031
private Structure structure; //biojava object public JSimJmolAdapter() { super("JSimJMolAdapter"); structure = new StructureImpl(); }
414243444546474849
* sets Structure * @param structure */ public void setStructure(Structure structure) { if (structure == null) structure = new StructureImpl(); this.structure = structure; }
55565758596061626364
*/ @Override public AtomIterator getAtomIterator(Object clientFile) { if ( ! (clientFile instanceof Structure)) { return new ProjectedAtomIterator(new StructureImpl()); } return new ProjectedAtomIterator(structure); }
828384858687888990919293949596
g.addAtom(a); Chain c = new ChainImpl(); c.addGroup(g); Structure s = new StructureImpl(); s.addChain(c); setStructure(s); s.setPDBCode("1AND"); executeCmd("select *; spacefill off;"); }
145146147148149150151152153154155
* sets a new Structure to the display * @param struct */ public void setStructure(Structure struct) { if (struct == null) { struct = new StructureImpl(); initJmolDisplay(); } this.structure = struct;