Examples of ArrowElement


Examples of org.openscience.cdk.renderer.elements.ArrowElement

       
        if (totalBoundsReactants == null || totalBoundsProducts == null)
          return null;
       
        double d = model.getBondLength() / model.getScale();
        return new ArrowElement(totalBoundsReactants.getMaxX() + d,
                                totalBoundsReactants.getCenterY(),
                                totalBoundsProducts.getMinX() - d,
                                totalBoundsProducts.getCenterY(),
                                1 / model.getScale(),true,model.getForeColor());
  }
View Full Code Here

Examples of org.openscience.cdk.renderer.elements.ArrowElement

    public IRenderingElement generate(IAtomContainer ac, RendererModel model) {
        JChemPaintRendererModel jcpModel = (JChemPaintRendererModel) model;
        if(hub.getPhantomArrow()[0]==null || hub.getPhantomArrow()[1]==null)
            return new ElementGroup();
        else
            return new ArrowElement(hub.getPhantomArrow()[0].x,
                    hub.getPhantomArrow()[0].y,
                    hub.getPhantomArrow()[1].x,
                    hub.getPhantomArrow()[1].y,
                    1 / jcpModel.getScale(),true,
                    Color.GRAY);
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.