Package org.openscience.jchempaint.renderer.selection

Examples of org.openscience.jchempaint.renderer.selection.RectangleSelection.addAtom()


        applet.button("select").click();
        panel.get2DHub().updateView();
        applet.panel("renderpanel").robot.waitForIdle();
    IAtomContainer ethane = panel.getChemModel().getMoleculeSet().getAtomContainer(0);
        RectangleSelection sel = new RectangleSelection();
        sel.addAtom (ethane.getAtom(0));
        sel.addBond(ethane.getBond(0));
        panel.getRenderPanel().getRenderer().getRenderer2DModel().setSelection(sel);
        panel.selectionChanged();
        try {
      applet.button("cut").click();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.