Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.Frame


    /**
     * 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 = new Frame();

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

        BooleanCheckbox widget = new BooleanCheckbox();

        widget.setSize(300, 300);
        widget.setDeviceName(tmpDeviceName);
        widget.setEntityName(tmpAttributeName);
        widget.setEnabled(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


    /**
     * 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 = new Frame();// CometeWidgetFactory.createFrame();
        String tmpDeviceName = null;
        String tmpAttributeName = null;
        if (args != null && args.length > 1) {
            tmpDeviceName = args[0];
            tmpAttributeName = args[1];
        }
        else {
            tmpDeviceName = "test/gs/1";
            tmpAttributeName = "double_scalar_rw";
        }

        final NumberScalarInput f = new NumberScalarInput();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());

        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setAskConfirmation(false);
        // f.setStateEnabled(false);
        // f.setTextButton("Mon Texte");
        // f.setBackgroundButton(Color.BLUE);
        // f.setBackgroundTextField(Color.RED);

        f.addWidgetListener(new IWidgetListener() {

            @Override
            public void booleanDataChanged(final boolean value) {
                System.out.println("booleanDataChanged " + value);
            }

            @Override
            public void booleanValueChanged(final boolean value) {
                System.out.println("booleanValueChanged " + value);
            }

            @Override
            public void doubleDataChanged(final double value) {
                System.out.println("doubleDataChanged " + value);
            }

            @Override
            public void doubleValueChanged(final double value) {
                System.out.println("doubleValueChanged " + value);
            }

            @Override
            public void stringDataChanged(final String value) {
                System.out.println("stringDataChanged " + value);
            }

            @Override
            public void stringValueChanged(final String value) {
                System.out.println("stringValueChanged " + value);
            }
        });
        f.initDAO();

        frame.setContentPane(f);
        frame.setSize(640, 480);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
        //
        // new Thread() {
        // @Override
        // public void run() {
        // try {
View Full Code Here

        System.out.println(stringBox.printSelfDescription());
        System.out.println(numberBox.printSelfDescription());
    }

    public static void main(String[] args) {
        IFrame frame = new Frame();
        ConnectionTest sourceTest = new ConnectionTest();

        final JPanel f = sourceTest.initPanel();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("TextField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        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 = new Frame();
        String tmpDeviceName = null;
        String tmpAttributeName = null;
        if (args != null && args.length > 1) {
            tmpDeviceName = args[0];
            tmpAttributeName = args[1];
        }
        else {
            tmpDeviceName = "tango/tangotest/titan";
            tmpAttributeName = "float_image_ro";
        }

        NumberImageTable widget = new NumberImageTable();
        INumberTableListener listener = new INumberTableListener() {

            @Override
            public void selectedColumnChanged(int col) {
                System.out.println("selectedColumnChanged=" + col);
            }

            @Override
            public void selectedRowChanged(int col) {
                System.out.println("selectedRowChanged=" + col);

            }

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

            @Override
            public void valueChanged(AbstractNumberMatrix<?> matrix) {
                System.out.println("valueChanged=" + matrix);

            }

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

        widget.addNumberTableListener(listener);
        widget.setSize(300, 300);
        widget.setDeviceName(tmpDeviceName);
        widget.setEntityName(tmpAttributeName);
        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

    /**
     * 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 = new Frame();

        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

    //
    // return viewer;
    // }

    public static void main(String[] args) {
        IFrame frame = new Frame();

        IChartViewer chart = createChartViewer();

        final JPanel f = initPanel(chart);
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("NumberField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        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 = new Frame();
        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";
        }

        NumberScalarPeriodicTable f = new NumberScalarPeriodicTable();
        f.setSize(1300, 1000);
        f.setPreferredSize(f.getSize());
        f.setDeviceName(tmpDeviceName);
        f.setEntityName(tmpAttributeName);
        f.setEnabled(true);
        f.initDAO();

        frame.setContentPane(f);
        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 = new Frame();
        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";
        }

        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

        return panel;
    }

    public static void main(String[] args) {
        IFrame frame = new Frame();

        final JPanel f = initPanel();
        f.setSize(300, 300);
        f.setPreferredSize(f.getSize());
        f.setEnabled(true);

        frame.setTitle("NumberField Test");
        frame.setContentPane(f);
        frame.setSize(500, 200);
        frame.setTitle(f.getClass().getName());
        frame.setDefaultCloseOperation(IFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
        f.grabFocus();
    }
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 = new Frame();
        String[] attributeNameList = null;
        if (args != null && args.length > 0) {
            attributeNameList = new String[] { args[0] };
        }
        else {
            attributeNameList = new String[] { "tango/tangotest/titan/float_spectrum_ro",
                    "tango/tangotest/titan/float_spectrum", "tango/tangotest/titan/double_spectrum" };
        }

        MultiNumberSpectrumViewer f = new MultiNumberSpectrumViewer();
        f.setAttributeNameList(attributeNameList);
        f.setColorArrayList(new Color[] { Color.BLUE, Color.RED, Color.CYAN });
        f.setMarkerStyleList(new int[] { IChartViewer.MARKER_BOX });
        f.setMarkerSizeList(new int[] { 5 });
        f.setDataArrayLineWidth(new int[] { 1, 2, 3 });
        f.setY1GridStyle(IChartViewer.STYLE_LONG_DASH);
        f.setAxisList(new int[] { IChartViewer.Y2 });
        f.setY1GridVisible(true);
        f.setSize(600, 600);
        f.setPreferredSize(f.getSize());
        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

TOP

Related Classes of fr.soleil.comete.swing.Frame

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.