Examples of screenToImageCoords()


Examples of jsky.coords.CoordinateConverter.screenToImageCoords()

        CoordinateConverter coordinateConverter = imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double();
        for (int i = 0; i < length; i += 2) {
            p.x = coords[i];
            p.y = coords[i + 1];
            coordinateConverter.screenToImageCoords(p, false);
            coords[i] = p.x;
            coords[i + 1] = p.y;
        }

        // convert to Tcl list format
View Full Code Here

Examples of jsky.coords.CoordinateConverter.screenToImageCoords()

     * Return a Tcl formatted (space separated) list of two image coordinate values
     * for the given screen coordinate point.
     */
    protected String getCoords(Point2D.Double p) {
        CoordinateConverter coordinateConverter = imageDisplay.getCoordinateConverter();
        coordinateConverter.screenToImageCoords(p, false);
        return Double.toString(p.getX()) + " " + Double.toString(p.getY());
    }

    /**
     * Return a Tcl formatted list of Tk canvas item style configuration options
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.