Package fr.soleil.comete.widget.util

Examples of fr.soleil.comete.widget.util.CometeRoi


          try {
            // oneRoi = RoiName,shape, LineSize, X, Y, Width,
            // Height, Color
            // CometeRoi r = new CometeRoi()
            addRoi(new CometeRoi(oneRoi[0].trim(), shape, Integer.parseInt(oneRoi[2].trim()), Integer.parseInt(oneRoi[3].trim()), Integer.parseInt(oneRoi[4].trim()), Integer
                .parseInt(oneRoi[5].trim()), Integer.parseInt(oneRoi[6].trim()), color));

          } catch (final NumberFormatException e) {
            System.err.println("Invalid ROI not added, the correct value must be RoiName,shape, LineSize, X, Y, Width, Height, Color");
          } catch (final Exception e) {
View Full Code Here


          System.err.println("Invalid ROI number " + (i + 1) + " not added : " + Arrays.toString(oneRoi));
        } else {

          try {
            // oneRoi = RoiName,X,Y,Width,Height
            addRoi(new CometeRoi(oneRoi[0], IRoi.RECTANGLE, 10, Integer.parseInt(oneRoi[1]), Integer.parseInt(oneRoi[2]), Integer.parseInt(oneRoi[3]), Integer.parseInt(oneRoi[4]),
                CometeColor.WHITE));

          } catch (final NumberFormatException e) {
            System.err.println("Invalid ROI number " + (i + 1) + " not added : " + Arrays.toString(oneRoi));
          }
View Full Code Here

          try {
            // oneRoi = RoiName,shape, LineSize, X, Y, Width,
            // Height, Color
            // CometeRoi r = new CometeRoi()
            addRoi(new CometeRoi(oneRoi[0].trim(), shape, Integer.parseInt(oneRoi[2].trim()), Integer.parseInt(oneRoi[3].trim()), Integer.parseInt(oneRoi[4].trim()), Integer
                .parseInt(oneRoi[5].trim()), Integer.parseInt(oneRoi[6].trim()), color));

          } catch (final NumberFormatException e) {
            System.err.println("Invalid ROI not added, the correct value must be RoiName,shape, LineSize, X, Y, Width, Height, Color");
          } catch (final Exception e) {
View Full Code Here

          System.err.println("Invalid ROI number " + (i + 1) + " not added : " + Arrays.toString(oneRoi));
        } else {

          try {
            // oneRoi = RoiName,X,Y,Width,Height
            addRoi(new CometeRoi(oneRoi[0], IRoi.RECTANGLE, 10, Integer.parseInt(oneRoi[1]), Integer.parseInt(oneRoi[2]), Integer.parseInt(oneRoi[3]), Integer.parseInt(oneRoi[4]),
                CometeColor.WHITE));

          } catch (final NumberFormatException e) {
            System.err.println("Invalid ROI number " + (i + 1) + " not added : " + Arrays.toString(oneRoi));
          }
View Full Code Here

          try {
            // oneRoi = RoiName,shape, LineSize, X, Y, Width,
            // Height, Color
            // CometeRoi r = new CometeRoi()
            addRoi(new CometeRoi(oneRoi[0].trim(), shape, Integer.parseInt(oneRoi[2].trim()), Integer.parseInt(oneRoi[3].trim()), Integer.parseInt(oneRoi[4].trim()), Integer
                .parseInt(oneRoi[5].trim()), Integer.parseInt(oneRoi[6].trim()), color));

          } catch (final NumberFormatException e) {
            System.err.println("Invalid ROI not added, the correct value must be RoiName,shape, LineSize, X, Y, Width, Height, Color");
          } catch (final Exception e) {
View Full Code Here

          System.err.println("Invalid ROI number " + (i + 1) + " not added : " + Arrays.toString(oneRoi));
        } else {

          try {
            // oneRoi = RoiName,X,Y,Width,Height
            addRoi(new CometeRoi(oneRoi[0], IRoi.RECTANGLE, 10, Integer.parseInt(oneRoi[1]), Integer.parseInt(oneRoi[2]), Integer.parseInt(oneRoi[3]), Integer.parseInt(oneRoi[4]),
                CometeColor.WHITE));

          } catch (final NumberFormatException e) {
            System.err.println("Invalid ROI number " + (i + 1) + " not added : " + Arrays.toString(oneRoi));
          }
View Full Code Here

                }
                else {

                    try {
                        // oneRoi = RoiName,X,Y,Width,Height
                        addRoi(new CometeRoi(oneRoi[0], IRoi.RECTANGLE, 10, Integer
                                .parseInt(oneRoi[1]), Integer.parseInt(oneRoi[2]), Integer
                                .parseInt(oneRoi[3]), Integer.parseInt(oneRoi[4]),
                                CometeColor.WHITE));
                    }
                    catch (NumberFormatException e) {
View Full Code Here

    f.addImageViewerListener(listener);
    f.setDeviceName(tmpDeviceName);
    f.setEntityName(tmpAttributeName);
    f.initDAO();

        f.addRoi(new CometeRoi("MyRoi1", IRoi.RECTANGLE, 10, 90, 90, 80, 50, CometeColor.BLUE));
        f.addRoi(new CometeRoi("MyRoi2", IRoi.RECTANGLE, 10, 100, 100, 90, 60, CometeColor.GREEN));
        f.setShowRoiInformationTable(true);

    frame.setContentPane(f);
    frame.setSize(640, 480);
    frame.setTitle(f.getClass().getName());
View Full Code Here

TOP

Related Classes of fr.soleil.comete.widget.util.CometeRoi

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.