Examples of imageToScreenCoords()


Examples of jsky.coords.CoordinateConverter.imageToScreenCoords()

        Point2D.Double p = new Point2D.Double();

        for (int i = 0; i < length; i += 2) {
            p.x = coords[i + offset];
            p.y = coords[i + offset + 1];
            coordinateConverter.imageToScreenCoords(p, false);
            c[i] = p.x;
            c[i + 1] = p.y;
        }
        return c;
    }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.imageToScreenCoords()


        if (_stats != null) {
            Point2D.Double p = new Point2D.Double(_stats.getImageX(), _stats.getImageY());
            CoordinateConverter cc = _mainImageDisplay.getCoordinateConverter();
            cc.imageToScreenCoords(p, false);
            _imageZoom.zoom((int) p.x, (int) p.y, true);
        }

        _updating = true;
        try {
View Full Code Here

Examples of jsky.coords.CoordinateConverter.imageToScreenCoords()

        // compute end points for X-axis and convert them to canvas coordinates
        double xc = _stats.getImageX(), yc = _stats.getImageY();
        CoordinateConverter cc = imgDisp.getCoordinateConverter();
        Point2D.Double px1 = new Point2D.Double(xc + dxX, yc + dyX);
        Point2D.Double px2 = new Point2D.Double(xc - dxX, yc - dyX);
        cc.imageToScreenCoords(px1, false);
        cc.imageToScreenCoords(px2, false);

        // the Y-axis is rotated "by hand" so that it appears perpendicular to the X-axis
        Point2D.Double py1 = new Point2D.Double(xc + dyY, yc - dxY);
        Point2D.Double py2 = new Point2D.Double(xc - dyY, yc + dxY);
View Full Code Here

Examples of jsky.coords.CoordinateConverter.imageToScreenCoords()

        double xc = _stats.getImageX(), yc = _stats.getImageY();
        CoordinateConverter cc = imgDisp.getCoordinateConverter();
        Point2D.Double px1 = new Point2D.Double(xc + dxX, yc + dyX);
        Point2D.Double px2 = new Point2D.Double(xc - dxX, yc - dyX);
        cc.imageToScreenCoords(px1, false);
        cc.imageToScreenCoords(px2, false);

        // the Y-axis is rotated "by hand" so that it appears perpendicular to the X-axis
        Point2D.Double py1 = new Point2D.Double(xc + dyY, yc - dxY);
        Point2D.Double py2 = new Point2D.Double(xc - dyY, yc + dxY);
        cc.imageToScreenCoords(py1, false);
View Full Code Here

Examples of jsky.coords.CoordinateConverter.imageToScreenCoords()

        cc.imageToScreenCoords(px2, false);

        // the Y-axis is rotated "by hand" so that it appears perpendicular to the X-axis
        Point2D.Double py1 = new Point2D.Double(xc + dyY, yc - dxY);
        Point2D.Double py2 = new Point2D.Double(xc - dyY, yc + dxY);
        cc.imageToScreenCoords(py1, false);
        cc.imageToScreenCoords(py2, false);

        // draw X and Y axis lines with an outer thick black line
        // and inner thin white line
        Line2D.Double lx = new Line2D.Double(px1, px2);
View Full Code Here

Examples of jsky.coords.CoordinateConverter.imageToScreenCoords()

        // the Y-axis is rotated "by hand" so that it appears perpendicular to the X-axis
        Point2D.Double py1 = new Point2D.Double(xc + dyY, yc - dxY);
        Point2D.Double py2 = new Point2D.Double(xc - dyY, yc + dxY);
        cc.imageToScreenCoords(py1, false);
        cc.imageToScreenCoords(py2, false);

        // draw X and Y axis lines with an outer thick black line
        // and inner thin white line
        Line2D.Double lx = new Line2D.Double(px1, px2);
        Line2D.Double ly = new Line2D.Double(py1, py2);
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.