Package org.openscience.cdk.renderer.elements

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


            // so that it can be scaled back to screen space...
            double radius = jcpModel.getHighlightDistance() / jcpModel.getScale();
            radius /= 2.0;
            boolean filled = jcpModel.getHighlightShapeFilled();
            Color highlightColor = jcpModel.getHoverOverColor();
            return new OvalElement(p.x, p.y, radius, filled, highlightColor);
        }
       
        return new ElementGroup();
    }
View Full Code Here


            IAtomContainer selectedAC = selection.getConnectedAtomContainer();
            if (selectedAC != null) {
                for (IAtom atom : selectedAC.atoms()) {
                    Point2d p = atom.getPoint2d();
                    IRenderingElement element;
                    element = new OvalElement(
                          p.x, p.y, d, false, selectionColor);
                    selectionElements.add(element);
                }
            }
        }
View Full Code Here

            } else if (align == -2) {
                ry += modelAtomRadius;
                dx += modelSeparation;
            }
            group.add(
                    new OvalElement(rx + dx, ry + dy,
                            modelPointRadius, true, RADICAL_COLOR));
            group.add(
                    new OvalElement(rx - dx, ry - dy,
                            modelPointRadius, true, RADICAL_COLOR));
        }
        return group;
    }
View Full Code Here

            double r = jcpModel.getHighlightDistance() / jcpModel.getScale();
            r /= 2.0;
            Color hColor = jcpModel.getHoverOverColor();
            Point2d p = bond.get2DCenter();
            boolean filled = jcpModel.getHighlightShapeFilled();
            return new OvalElement(p.x, p.y, r, filled, hColor);
        }
        return new ElementGroup();
    }
View Full Code Here

            } else if (align == -2) {
                ry += ATOM_RADIUS;
            }
            singleElectronsPerAtom.put(atom, singleElectronsPerAtom.get(atom)+1);
            group.add(
                    new OvalElement(rx, ry, modelRadius, true, RADICAL_COLOR));
        }
        return group;
    }
View Full Code Here

TOP

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

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.