Package jsky.image.graphics

Examples of jsky.image.graphics.ImageLabel


                    configList.add(config);
                } catch (Exception e) {
                    continue; // ignore unsupported figures
                }
            } else if (cfig instanceof ImageLabel) {
                ImageLabel fig = (ImageLabel) cfig;
                Font font = fig.getFont();
                String text = fig.getString();
                Paint fill = fig.getFillPaint();
                typeList.add("text");
                coordList.add(getCoords((Point2D.Double) fig.getAnchorPoint()));
                configList.add(getConfig(text, font, fill));
            }
            i++;
        }
View Full Code Here


                shape = getPolygon(c);
            } else if ("text".equals(type) && text != null) {
                // text x y
                c = imageToScreenCoords(c);
                Point2D.Double pos = new Point2D.Double(c[0], c[1]);
                ImageLabel fig = new ImageLabel(text, pos, fill, font, graphics.getSelectionInteractor());
                canvasDraw.addFigure(fig);
            } else if ("path".equals(type)) {
                shape = getPath(c);
            }

            if (shape != null) {
//                ImageFigure fig = new ImageFigure(shape, fill, outline, lineWidth, interactor);
                RoiFigure fig = new RoiFigure(shape, fill, outline, lineWidth, interactor);
                if (composite != null) {
                    fig.setComposite((AlphaComposite) composite);
                }
                canvasDraw.addFigure(fig);
            }
        }
    }
View Full Code Here

TOP

Related Classes of jsky.image.graphics.ImageLabel

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.