Package org.openscience.jchempaint.renderer

Examples of org.openscience.jchempaint.renderer.IRenderer.toScreenCoordinates()


    }

    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();
View Full Code Here


        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
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.