Examples of convertCoords()


Examples of jsky.coords.CoordinateConverter.convertCoords()

                                             Paint outline, float lineWidth,
                                             String label, int anchor, Paint labelColor, Font font,
                                             Interactor interactor) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(rect.x, rect.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(rect.width, rect.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);
        Rectangle2D.Double r = new Rectangle2D.Double(p.x, p.y, size.x, size.y);
        return makeLabeledFigure(r, fill, outline, lineWidth, label, anchor, labelColor, font, interactor);
    }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

                                             Interactor interactor) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(rect.x, rect.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(rect.width, rect.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);
        Rectangle2D.Double r = new Rectangle2D.Double(p.x, p.y, size.x, size.y);
        return makeLabeledFigure(r, fill, outline, lineWidth, label, anchor, labelColor, font, interactor);
    }

    /**
 
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

     */
    public CanvasFigure makeRectangle(Rectangle2D.Double rect, int coordType, Paint fill,
                                      Paint outline, float lineWidth, Interactor interactor) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(rect.x, rect.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(rect.width, rect.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);
        Rectangle2D.Double r = new Rectangle2D.Double(p.x, p.y, size.x, size.y);
        return makeFigure(r, fill, outline, lineWidth, interactor);
    }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

                                      Paint outline, float lineWidth, Interactor interactor) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(rect.x, rect.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(rect.width, rect.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);
        Rectangle2D.Double r = new Rectangle2D.Double(p.x, p.y, size.x, size.y);
        return makeFigure(r, fill, outline, lineWidth, interactor);
    }

    /**
 
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

     */
    public RotatableCanvasFigure makeRoiRectangle(Rectangle2D.Double rect, int coordType, Paint fill,
                                         Paint outline, float lineWidth) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(rect.x, rect.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(rect.width, rect.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);

        Rectangle2D.Double r = new Rectangle2D.Double(p.x, p.y, size.x, size.y);
        return new RoiRectangle(r, fill, outline, lineWidth, _roiSelectionInteractor);
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

                                         Paint outline, float lineWidth) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(rect.x, rect.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(rect.width, rect.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);

        Rectangle2D.Double r = new Rectangle2D.Double(p.x, p.y, size.x, size.y);
        return new RoiRectangle(r, fill, outline, lineWidth, _roiSelectionInteractor);
    }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

     */
    public RotatableCanvasFigure makeRoiEllipse(Ellipse2D.Double ellipse, int coordType, Paint fill,
                                       Paint outline, float lineWidth) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(ellipse.x, ellipse.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(ellipse.width, ellipse.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);

        Ellipse2D.Double e = new Ellipse2D.Double(p.x, p.y, size.x, size.y);
        return new RoiEllipse(e, fill, outline, lineWidth, _roiSelectionInteractor);
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

                                       Paint outline, float lineWidth) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(ellipse.x, ellipse.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(ellipse.width, ellipse.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);

        Ellipse2D.Double e = new Ellipse2D.Double(p.x, p.y, size.x, size.y);
        return new RoiEllipse(e, fill, outline, lineWidth, _roiSelectionInteractor);
    }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

                                           Paint outline, float lineWidth,
                                           String label, int anchor, Paint labelColor, Font font,
                                           Interactor interactor) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(ellipse.x, ellipse.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(ellipse.width, ellipse.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);
        Ellipse2D.Double r = new Ellipse2D.Double(p.x, p.y, size.x, size.y);
        return makeLabeledFigure(r, fill, outline, lineWidth, label, anchor, labelColor, font, interactor);
    }
View Full Code Here

Examples of jsky.coords.CoordinateConverter.convertCoords()

                                           Interactor interactor) {
        CoordinateConverter coordinateConverter = _imageDisplay.getCoordinateConverter();
        Point2D.Double p = new Point2D.Double(ellipse.x, ellipse.y);
        coordinateConverter.convertCoords(p, coordType, CoordinateConverter.SCREEN, false);
        Point2D.Double size = new Point2D.Double(ellipse.width, ellipse.height);
        coordinateConverter.convertCoords(size, coordType, CoordinateConverter.SCREEN, true);
        Ellipse2D.Double r = new Ellipse2D.Double(p.x, p.y, size.x, size.y);
        return makeLabeledFigure(r, fill, outline, lineWidth, label, anchor, labelColor, font, interactor);
    }

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