Package fr.soleil.comete.widget

Examples of fr.soleil.comete.widget.IFrame


  /**
   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {

    IFrame frame = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;
    String tmpAttributeName = null;
    if (args != null && args.length > 1) {
      tmpDeviceName = args[0];
      tmpAttributeName = args[1];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
      tmpAttributeName = "string_spectrum";
    }

    StringTextArea f = new StringTextArea();
    f.setSize(300, 300);
    f.setDeviceName(tmpDeviceName);
    f.setEntityName(tmpAttributeName);
    f.setEnabled(true);
    f.setConfirmation(false);
    f.initDAO();

    frame.setContentPane(f);
    frame.setSize(640, 480);
    frame.setTitle(f.getClass().getName());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here


  /**
   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {

    IFrame frame = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;

    if (args != null && args.length > 0) {
      tmpDeviceName = args[0];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
    }

    StateButton f = new StateButton();
    f.setDeviceName(tmpDeviceName);
    f.initDAO();

    frame.setContentPane(f);
    frame.setSize(640, 480);
    frame.setTitle(f.getClass().getName());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

  /**
   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {

    IFrame frame = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;
    String tmpAttributeName = null;
    if (args != null && args.length > 1) {
      tmpDeviceName = args[0];
      tmpAttributeName = args[1];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
      tmpAttributeName = "double_scalar";
    }

    NumberScalarField f = new NumberScalarField();
    f.setSize(300, 300);
    f.setPreferredSize(f.getSize());
    f.setDeviceName(tmpDeviceName);
    f.setEntityName(tmpAttributeName);
    f.setEnabled(true);
    f.setEditable(true);
    f.setStateEnabled(true);
    f.setConfirmation(false);
    f.initDAO();

    frame.setContentPane(f);
    frame.setSize(640, 480);
    frame.setTitle(f.getClass().getName());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

    /**
     * Main class, so you can have an example. You can put your own attribute names in parameter
     */
    public static void main(String[] args) {

        IFrame frame = CometeWidgetFactory.createFrame();
        String[] xAttributeNameList = null;
        String[] yAttributeNameList = null;
        if (args != null && args.length > 1) {
            xAttributeNameList = new String[] { args[0] };
            yAttributeNameList = new String[] { args[1] };
        }
        else {
             xAttributeNameList = new String[] { "tango/tangotest/titan/float_spectrum_ro",
                    "tango/tangotest/titan/float_spectrum" };
            yAttributeNameList = new String[] { "tango/tangotest/titan/float_spectrum_ro",
                    "tango/tangotest/titan/double_spectrum" };

            // xAttributeNameList = new String[] { "test/scanserver/titan/data_0t1" };
            // yAttributeNameList = new String[] { "test/scanserver/titan/actuator_1t_1" };
        }

        DualNumberSpectrumViewer f = new DualNumberSpectrumViewer();
        f.setXAttributeNameList(xAttributeNameList);
        f.setYAttributeNameList(yAttributeNameList);
        f.setColorArrayList(new Color[] { Color.BLUE, Color.RED });
        f.setMarkerStyleList(new int[] { IChartViewer.MARKER_BOX });
        f.setMarkerSizeList(new int[] { 5 });
        f.setDataArrayLineWidth(new int[] { 2 });
        f.setY1GridStyle(IChartViewer.STYLE_LONG_DASH);
        f.setY1GridVisible(true);
        f.initDAO();

        frame.setContentPane(f);
        frame.setSize(640, 600);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
View Full Code Here

  /**
   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {

    IFrame frame = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;
    String tmpAttributeName = null;
    if (args != null && args.length > 1) {
      tmpDeviceName = args[0];
      tmpAttributeName = args[1];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
      tmpAttributeName = "ampli";
    }

    NumberScalarSlider f = new NumberScalarSlider();
    f.setSize(300, 300);
    f.setPreferredSize(f.getSize());
    f.setDeviceName(tmpDeviceName);
    f.setEntityName(tmpAttributeName);
    f.setEnabled(true);
    f.setConfirmation(false);
    f.initDAO();

    frame.setContentPane(f);
    frame.setSize(640, 480);
    frame.setTitle(f.getClass().getName());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

  /**
   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {

    IFrame frame = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;
    String tmpAttributeName = null;
    if (args != null && args.length > 1) {
      tmpDeviceName = args[0];
      tmpAttributeName = args[1];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
      // tmpAttributeName = "string_scalar";
      tmpAttributeName = "State";
    }

    StringScalarTextField f = new StringScalarTextField();
    f.setDeviceName(tmpDeviceName);
    f.setEntityName(tmpAttributeName);
    f.setEnabled(true);
    f.setEditable(true);
    f.setConfirmation(true);
    f.initDAO();

    frame.setContentPane(f);
    frame.setSize(640, 480);
    frame.setTitle(f.getClass().getName());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

  /**
   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {

    IFrame frame = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;
    String tmpAttributeName = null;
    if (args != null && args.length > 1) {
      tmpDeviceName = args[0];
      tmpAttributeName = args[1];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
      tmpAttributeName = "double_spectrum";
    }

    NumberSpectrumViewer f = new NumberSpectrumViewer();
    f.setSize(300, 300);
    f.setPreferredSize(f.getSize());
    f.setDeviceName(tmpDeviceName);
    f.setEntityName(tmpAttributeName);
    f.initDAO();

    frame.setContentPane(f);
    frame.setSize(640, 480);
    frame.setTitle(f.getClass().getName());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

    /**
     * Main class, so you can have an example. You can put your own attribute names in parameter
     */
    public static void main(String[] args) {

        IFrame frame = CometeWidgetFactory.createFrame();
        String[] xAttributeNameList = null;
        String[] yAttributeNameList = null;
        if (args != null && args.length > 1) {
            xAttributeNameList = new String[] { args[0] };
            yAttributeNameList = new String[] { args[1] };
        }
        else {
            xAttributeNameList = new String[] { "tango/tangotest/titan/float_spectrum_ro",
            "tango/tangotest/titan/float_spectrum" };
            yAttributeNameList = new String[] { "tango/tangotest/titan/float_spectrum_ro",
            "tango/tangotest/titan/double_spectrum" };
        }

        DualNumberSpectrumViewer f = new DualNumberSpectrumViewer();
        f.setXAttributeNameList(xAttributeNameList);
        f.setYAttributeNameList(yAttributeNameList);
        f.setColorArrayList(new Color[] { Color.BLUE, Color.RED });
        f.setMarkerStyleList(new int[] { IChartViewer.MARKER_BOX });
        f.setMarkerSizeList(new int[] { 5 });
        f.setDataArrayLineWidth(new int[] { 2 });
        f.setY1GridStyle(IChartViewer.STYLE_LONG_DASH);
        f.setY1GridVisible(true);
        f.initDAO();

        frame.setContentPane(f);
        frame.setSize(640, 600);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }
View Full Code Here

  /**
   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {

    IFrame frame = CometeWidgetFactory.createFrame();
    String tmpDeviceName = null;
    String tmpAttributeName = null;
    if (args != null && args.length > 1) {
      tmpDeviceName = args[0];
      tmpAttributeName = args[1];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
      tmpAttributeName = "double_image_ro";
    }

    NumberImageViewer f = new NumberImageViewer();

    IImageViewerListener listener = new IImageViewerListener() {

      @Override
      public void selectedPointChanged(Point point) {
        System.out.println("selectedPointChanged=" + point);
      }

      @Override
      public void selectedValueChanged(Number y) {
        System.out.println("selectedValueChanged=" + y);
      }

      @Override
      public void selectedXChanged(Number x) {
        System.out.println("selectedXChanged=" + x);
      }

      @Override
      public void selectedYChanged(Number y) {
        System.out.println("selectedYChanged=" + y);
      }

      @Override
      public void valueChanged(NumberMatrix value) {
        System.out.println("valueChanged=" + value);
      }
    };

    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());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

   * Main class, so you can have an example. You can put your own attribute names in parameter
   */
  public static void main(String[] args) {


    IFrame frame = CometeWidgetFactory.createFrame();

    String tmpDeviceName = null;
    String tmpAttributeName = null;
    if (args != null && args.length > 1) {
      tmpDeviceName = args[0];
      tmpAttributeName = args[1];
    }
    else {
      tmpDeviceName = "tango/tangotest/titan";
      tmpAttributeName = "boolean_scalar";
    }

    BooleanRadioButton widget = new BooleanRadioButton();
    widget.setSize(300, 300);
    widget.setDeviceName(tmpDeviceName);
    widget.setEntityName(tmpAttributeName);
    widget.setEnabled(true);
    widget.setStateEnabled(false);
    widget.setConfirmation(true);
    widget.initDAO();

    frame.setContentPane(widget);
    frame.setSize(640, 480);
    frame.setTitle(widget.getClass().getName());
    frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
    frame.setVisible(true);
  }
View Full Code Here

TOP

Related Classes of fr.soleil.comete.widget.IFrame

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.