Package org.openscience.jchempaint.action

Examples of org.openscience.jchempaint.action.JCPAction.actionPerformed()


            // For some reason this does not work
            // applet.button("undo").click();
            // panel.get2DHub().updateView();
            // so we crank the lever manually
            JCPAction act = new JCPAction().getAction(panel, "org.openscience.jchempaint.action.UndoAction");
            act.actionPerformed(null);
    } catch (Exception e) {
      Assert.fail();
    }
        panel.get2DHub().updateView();
        applet.panel("renderpanel").robot.waitForIdle();
View Full Code Here


    Assert.assertEquals(5, bondCount);
    Assert.assertEquals(14, implicitHCount);
 
    try {
            JCPAction act = new JCPAction().getAction(panel, "org.openscience.jchempaint.action.UndoAction");
            act.actionPerformed(null);
    } catch (NullPointerException e) {
          Assert.fail();
    }

        atomCount=0; bondCount=0;
View Full Code Here

            // For some reason this does not work
            // applet.button("cleanup").click();
            // panel.get2DHub().updateView();
            // so we crank the lever manually
            JCPAction act = new JCPAction().getAction(panel, "org.openscience.jchempaint.action.CleanupAction");
            act.actionPerformed(null);
    } catch (Exception e) {
      Assert.fail();
    }
        panel.get2DHub().updateView();
        applet.panel("renderpanel").robot.waitForIdle();
View Full Code Here

        // For some reason this does not work
        // applet.button("select").click();
        // panel.get2DHub().updateView();
        // so we crank the lever manually
        JCPAction act = new JCPAction().getAction(panel, "org.openscience.jchempaint.action.ChangeModeAction@select");
        act.actionPerformed(null);
        applet.panel("renderpanel").robot.waitForIdle();
    IAtomContainer ethane = panel.getChemModel().getMoleculeSet().getAtomContainer(0);
    Renderer r = panel.getRenderPanel().getRenderer();
    Point2d atompos0=ethane.getAtom(0).getPoint2d();
    Point2d atompos1=ethane.getAtom(1).getPoint2d();
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.