Package org.openscience.jchempaint.dialog.editor

Examples of org.openscience.jchempaint.dialog.editor.ChemObjectPropertyDialog


        return;
      }
      jcpPanel.get2DHub().getRGroupHandler().cleanUpRGroup(jcpPanel.get2DHub().getChemModel().getMoleculeSet());
      ChemObjectEditor editor = new RGroupEditor(hub);
      editor.setChemObject((org.openscience.cdk.ChemObject)hub.getRGroupHandler().getrGroupQuery());
      ChemObjectPropertyDialog frame = new ChemObjectPropertyDialog(JOptionPane.getFrameForComponent(editor), jcpPanel.get2DHub(),editor);
      frame.pack();
      frame.setVisible(true);
      jcpPanel.get2DHub().updateView();
    }


    //FOLLOWING actions involve undo/redo
View Full Code Here


      editor = new BondEditor(jcpPanel.get2DHub(), jcpPanel.getBlacklist());
    }
   
    if (editor != null) {
      editor.setChemObject((org.openscience.cdk.ChemObject)object);
      ChemObjectPropertyDialog frame =
          new ChemObjectPropertyDialog(JOptionPane.getFrameForComponent(editor), jcpPanel.get2DHub(),editor);
      frame.pack();
      frame.setVisible(true);
    }
    jcpPanel.get2DHub().updateView();
  }
View Full Code Here

    if(object instanceof IAtom)
      relevantContainer = ChemModelManipulator.getRelevantAtomContainer(jcpPanel.getChemModel(),(IAtom)object);
    if(object instanceof IBond)
      relevantContainer = ChemModelManipulator.getRelevantAtomContainer(jcpPanel.getChemModel(),(IBond)object);
    editor.setChemObject(relevantContainer);
    ChemObjectPropertyDialog frame =
      new ChemObjectPropertyDialog(JOptionPane.getFrameForComponent(editor), jcpPanel.get2DHub(), editor);
    frame.pack();
    frame.setVisible(true);
  }
View Full Code Here

TOP

Related Classes of org.openscience.jchempaint.dialog.editor.ChemObjectPropertyDialog

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.