Examples of RectangleElement


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

        double minX = totalBounds.getMinX();
        double minY = totalBounds.getMinY();
        double maxX = totalBounds.getMaxX();
        double maxY = totalBounds.getMaxY();
        Color c = model.getForeColor();
        diagram.add(new RectangleElement(
                        minX - d, maxY + d, maxX + d, minY - d, c));
        diagram.add(new TextElement(
                        (minX+maxX)/2, minY-d, "Reactants", c));
        return diagram;
  }
View Full Code Here

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

    public RectangleSelection() {
        this.rectangle = new Rectangle2D.Double();
    }
   
    public IRenderingElement generate(Color color) {
        return new RectangleElement(
                this.rectangle.getMinX(),
                this.rectangle.getMaxY(),
                this.rectangle.getMaxX(),
                this.rectangle.getMinY(),
                color);
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.