Package org.openscience.cdk.renderer.elements

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


    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

Related Classes of org.openscience.cdk.renderer.elements.ArrowElement

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.