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 = "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();

    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 = "ampli";
        }

        NumberScalarInput f = new NumberScalarInput();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        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(final String[] args) {

        final 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";
        }

        final 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 scanServer = "test/scan/julien";
        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[] { "sensorsTimestamps", "sensorsTimestamps" };
            yAttributeNameList = new String[] { "data_02", "actuator_1_2" };

        }

        CurrentScanDualSpectrumViewer f = new CurrentScanDualSpectrumViewer();
        // f.setAttributeNameList(scanServer, attributeNameList);
        f.setXAttributeNameList(scanServer, xAttributeNameList);
        f.setYAttributeNameList(scanServer, 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.setY2GridStyle(IChartViewer.STYLE_LONG_DASH);
        // f.setY2GridVisible(true);
        // f.setXDateFormat(true);
        f.setAttributesOnAxis(scanServer, new String[] { "actuator_1_1", "data_01" },
                IChartViewer.Y2);
        // f.setAttributesOnAxis(scanServer, new String[] { "data_01" }, IChartViewer.Y2);
        // f.setAxisList(new int[] { 0, 1 });

        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 scanServer = "test/scan/julien";
        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[] { "sensorsTimestamps", "sensorsTimestamps",
                    "sensorsTimestamps" };
            yAttributeNameList = new String[] { "actuator_1_1", "data_01", "data_02" };
        }

        CurrentScanDualSpectrumViewer f = new CurrentScanDualSpectrumViewer();
        f.setXAttributeNameList(scanServer, xAttributeNameList);
        f.setYAttributeNameList(scanServer, 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.setY2GridStyle(IChartViewer.STYLE_LONG_DASH);
        // f.setY2GridVisible(true);
        // f.setXDateFormat(true);
        f.setAttributesOnAxis(scanServer, new String[] { "actuator_1_1", "data_01" },
                IChartViewer.Y1);
        f.setAttributesOnAxis(scanServer, new String[] { "data_02" }, IChartViewer.Y2);
        // f.setAxisList(new int[] { 0, 1 });

        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 scanServer = "test/scan/julien";
        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[] { "sensorsTimestamps", "sensorsTimestamps" };
            yAttributeNameList = new String[] { "data_02", "actuator_1_2" };

        }

        CurrentScanDualSpectrumViewer f = new CurrentScanDualSpectrumViewer();
        // f.setAttributeNameList(scanServer, attributeNameList);
        f.setXAttributeNameList(scanServer, xAttributeNameList);
        f.setYAttributeNameList(scanServer, 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.setY2GridStyle(IChartViewer.STYLE_LONG_DASH);
        // f.setY2GridVisible(true);
        // f.setXDateFormat(true);
        f.setAttributesOnAxis(scanServer, new String[] { "actuator_1_1", "data_01" },
                IChartViewer.Y2);
        // f.setAttributesOnAxis(scanServer, new String[] { "data_01" }, IChartViewer.Y2);
        // f.setAxisList(new int[] { 0, 1 });

        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 scanServer = "test/scan/julien";
        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[] { "sensorsTimestamps", "sensorsTimestamps",
                    "sensorsTimestamps" };
            yAttributeNameList = new String[] { "actuator_1_1", "data_01", "data_02" };
        }

        CurrentScanDualSpectrumViewer f = new CurrentScanDualSpectrumViewer();
        f.setXAttributeNameList(scanServer, xAttributeNameList);
        f.setYAttributeNameList(scanServer, 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.setY2GridStyle(IChartViewer.STYLE_LONG_DASH);
        // f.setY2GridVisible(true);
        // f.setXDateFormat(true);
        f.setAttributesOnAxis(scanServer, new String[] { "actuator_1_1", "data_01" },
                IChartViewer.Y1);
        f.setAttributesOnAxis(scanServer, new String[] { "data_02" }, IChartViewer.Y2);
        // f.setAxisList(new int[] { 0, 1 });

        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 scanServer = "test/scan/julien";
        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[] { "sensorsTimestamps", "sensorsTimestamps" };
            yAttributeNameList = new String[] { "data_02", "actuator_1_2" };

        }

        CurrentScanDualSpectrumViewer f = new CurrentScanDualSpectrumViewer();
        // f.setAttributeNameList(scanServer, attributeNameList);
        f.setXAttributeNameList(scanServer, xAttributeNameList);
        f.setYAttributeNameList(scanServer, 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.setY2GridStyle(IChartViewer.STYLE_LONG_DASH);
        // f.setY2GridVisible(true);
        // f.setXDateFormat(true);
        f.setAttributesOnAxis(scanServer, new String[] { "actuator_1_1", "data_01" },
                IChartViewer.Y2);
        // f.setAttributesOnAxis(scanServer, new String[] { "data_01" }, IChartViewer.Y2);
        // f.setAxisList(new int[] { 0, 1 });

        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 scanServer = "test/scan/julien";
        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[] { "sensorsTimestamps", "sensorsTimestamps",
                    "sensorsTimestamps" };
            yAttributeNameList = new String[] { "actuator_1_1", "data_01", "data_02" };
        }

        CurrentScanDualSpectrumViewer f = new CurrentScanDualSpectrumViewer();
        f.setXAttributeNameList(scanServer, xAttributeNameList);
        f.setYAttributeNameList(scanServer, 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.setY2GridStyle(IChartViewer.STYLE_LONG_DASH);
        // f.setY2GridVisible(true);
        // f.setXDateFormat(true);
        f.setAttributesOnAxis(scanServer, new String[] { "actuator_1_1", "data_01" },
                IChartViewer.Y1);
        f.setAttributesOnAxis(scanServer, new String[] { "data_02" }, IChartViewer.Y2);
        // f.setAxisList(new int[] { 0, 1 });

        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

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.