Package org.openscience.cdk.isomorphism.matchers

Examples of org.openscience.cdk.isomorphism.matchers.RGroupQuery


                    }
        }

        // RGroupQuery reading
        if (cor.accepts(RGroupQuery.class) && chemModel==null) {
          IRGroupQuery rgroupQuery = (RGroupQuery) cor.read(new RGroupQuery(DefaultChemObjectBuilder.getInstance()));
          if(rgroupQuery!=null )
            try{
              chemModel = new ChemModel();
              RGroupHandler rgHandler =  new RGroupHandler(rgroupQuery, panel);
              panel.get2DHub().setRGroupHandler(rgHandler);
View Full Code Here


                            toPaste.add(ac);

                        }
                  } else if (reader.accepts(RGroupQuery.class)) {
                rgrpQuery=true;
                    IRGroupQuery rgroupQuery = (RGroupQuery) reader.read(new RGroupQuery(DefaultChemObjectBuilder.getInstance()));
                chemModel = new ChemModel();
                RGroupHandler rgHandler =  new RGroupHandler(rgroupQuery, this.jcpPanel);
                this.jcpPanel.get2DHub().setRGroupHandler(rgHandler);
                chemModel.setMoleculeSet(rgHandler.getMoleculeSet(chemModel));
                rgHandler.layoutRgroup();
View Full Code Here

   * Initializes an empty RGroupQuery.
   *
   * @return a new empty RGroupQuery
   */
  private IRGroupQuery newRGroupQuery(IChemObjectBuilder builder) {
    IRGroupQuery rgrpQuery = new RGroupQuery(DefaultChemObjectBuilder.getInstance());
    rgrpQuery.setRootStructure(builder.newInstance(IAtomContainer.class));
    rgrpQuery
        .setRootAttachmentPoints(new HashMap<IAtom, Map<Integer, IBond>>());
    rgrpQuery.setRGroupDefinitions(new HashMap<Integer, RGroupList>());
    return rgrpQuery;
  }
View Full Code Here

TOP

Related Classes of org.openscience.cdk.isomorphism.matchers.RGroupQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.