Package org.openscience.jchempaint.renderer

Examples of org.openscience.jchempaint.renderer.IRenderer


        chemModelRelay.fireZoomEvent();
        chemModelRelay.updateView();
    }

    private void doZoom(double z) {
        IRenderer renderer = chemModelRelay.getRenderer();
        Point2d screenCoord =
            renderer.toScreenCoordinates( worldCoord.x, worldCoord.y );
        zoom(z);
        Point2d newScreenCoords =
            renderer.toScreenCoordinates( worldCoord.x, worldCoord.y );
       
        Vector2d v= new Vector2d();
        v.sub( screenCoord, newScreenCoords );
        renderer.shiftDrawCenter( v.x, v.y );
    }
View Full Code Here

TOP

Related Classes of org.openscience.jchempaint.renderer.IRenderer

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.