Package fr.soleil.model.scanserver

Examples of fr.soleil.model.scanserver.Axis


            // System.out.println("setValueAt=" + value + " row=" + row +
            // " col=" + column);
            // System.out.println("setValueAt=" + value.getClass().getName());
            if (value instanceof Axis) {
                final Object attributeName = getValueAt(row, 0);
                final Axis axis = (Axis) value;
                // System.out.println(attributeName + "=" + axis);
                if (attributeName != null) {
                    (new Thread() {
                        public void run() {
                            updateDataModelAxis(attributeName.toString(), axis.getAxis());
                        };
                    }).start();

                }
            }
View Full Code Here


            // System.out.println("setValueAt=" + value + " row=" + row + " col=" + column);
            // System.out.println("setValueAt=" + value.getClass().getName());
            if (value != null && value instanceof Axis) {
                final Object attributeName = getValueAt(row, 0);
                // System.out.println("attributeName=" + attributeName);
                final Axis axis = (Axis) value;
                if (attributeName != null) {
                    userEvent = true;
                    (new Thread() {
                        public void run() {
                            if (updateDataModelAxis(attributeName.toString(), axis.getAxis())) {
                                // System.out.println("attributeName=" + attributeName +
                                // "setValueAt="
                                // + value + " row=" + row + " col=" + column);
                                // updateTable();
                                if (axis.getAxis().equals(Axis.X)) {
                                    // System.out.println("repaint");
                                    // to remove the other data in X
                                    table.repaint();
                                }
                                // table.repaint();
View Full Code Here

        comboBoxSpectrum.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxSpectrum.getSelectedItem();
                objectValue = new Axis();
                objectValue.setAxis(sItem);
                objectValue.setType(Axis.SPECTRUM_TYPE);
                fireAxisCellEditorChanged();
            }
        });

        comboBoxImage.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxImage.getSelectedItem();
                objectValue = new Axis();
                if (sItem.equals(Axis.Y1)) {
                    objectValue.setAxis(Axis.Y1_SINGLE);
                }
                if (sItem.equals(Axis.Y2)) {
                    objectValue.setAxis(Axis.Y2_SINGLE);
View Full Code Here

        comboBoxSpectrum.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxSpectrum.getSelectedItem();
                objectValue = new Axis();
                objectValue.setAxis(sItem);
                objectValue.setType(Axis.SPECTRUM_TYPE);
                fireAxisCellEditorChanged();
            }
        });

        comboBoxImage.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxImage.getSelectedItem();
                objectValue = new Axis();
                if (sItem.equals(Axis.Y1)) {
                    objectValue.setAxis(Axis.Y1_SINGLE);
                }
                if (sItem.equals(Axis.Y2)) {
                    objectValue.setAxis(Axis.Y2_SINGLE);
View Full Code Here

        comboBoxSpectrum.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxSpectrum.getSelectedItem();
                objectValue = new Axis();
                objectValue.setAxis(sItem);
                objectValue.setType(Axis.SPECTRUM_TYPE);
            }
        });

        comboBoxImage.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxImage.getSelectedItem();
                objectValue = new Axis();
                objectValue.setAxis(sItem);
                objectValue.setType(Axis.IMAGE_TYPE);
            }

        });
View Full Code Here

        comboBoxSpectrum.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxSpectrum.getSelectedItem();
                objectValue = new Axis();
                objectValue.setAxis(sItem);
                objectValue.setType(Axis.SPECTRUM_TYPE);
                fireAxisCellEditorChanged();
            }
        });

        comboBoxImage.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxImage.getSelectedItem();
                objectValue = new Axis();
                if (sItem.equals(Axis.Y1)) {
                    objectValue.setAxis(Axis.Y1_SINGLE);
                }
                if (sItem.equals(Axis.Y2)) {
                    objectValue.setAxis(Axis.Y2_SINGLE);
View Full Code Here

        comboBoxSpectrum.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxSpectrum.getSelectedItem();
                objectValue = new Axis();
                objectValue.setAxis(sItem);
                objectValue.setType(Axis.SPECTRUM_TYPE);
                fireAxisCellEditorChanged();
            }
        });

        comboBoxImage.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String actionCommand = arg0.getActionCommand();
                if (arg0.getModifiers() == InputEvent.BUTTON1_MASK
                        || !actionCommand.equals("comboBoxChanged")) {
                    String sItem = (String) comboBoxImage.getSelectedItem();
                    objectValue = new Axis();
                    if (sItem.equals(Axis.Y1)) {
                        objectValue.setAxis(Axis.Y1_SINGLE);
                    }
                    if (sItem.equals(Axis.Y2)) {
                        objectValue.setAxis(Axis.Y2_SINGLE);
View Full Code Here

        comboBoxSpectrum.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String sItem = (String) comboBoxSpectrum.getSelectedItem();
                objectValue = new Axis();
                objectValue.setAxis(sItem);
                objectValue.setType(Axis.SPECTRUM_TYPE);
                fireAxisCellEditorChanged();
            }
        });

        comboBoxImage.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                String actionCommand = arg0.getActionCommand();
                if (arg0.getModifiers() == InputEvent.BUTTON1_MASK
                        || !actionCommand.equals("comboBoxChanged")) {
                    String sItem = (String) comboBoxImage.getSelectedItem();
                    objectValue = new Axis();
                    if (sItem.equals(Axis.X)) {
                        objectValue.setAxis(Axis.X);
                    }
                    if (sItem.equals(Axis.Y1)) {
                        objectValue.setAxis(Axis.Y1_SINGLE);
View Full Code Here

        @Override
        public void setValueAt(final Object value, final int row, final int column) {
            if (value instanceof Axis) {
                final Object attributeName = getValueAt(row, 0);
                final Axis axis = (Axis) value;
                if (attributeName != null) {
                    (new Thread() {
                        @Override
                        public void run() {
                            updateDataModelAxis(attributeName.toString(), axis.getAxis());
                        };
                    }).start();

                }
            }
View Full Code Here

TOP

Related Classes of fr.soleil.model.scanserver.Axis

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.