Package fr.soleil.comete.swing

Examples of fr.soleil.comete.swing.Label


        // nothing to do
    }

    @Override
    protected Label generateLabel() {
        Label label = new Label();
        label.setCometeFont(CometeFont.DEFAULT_FONT);
        label.setOpaque(false);
        stringBox.setColorEnabled(label, true);
        ((JComponent) label).setBorder(new LineBorder(new Color(0xB8CFE5)));
        return label;
    }
View Full Code Here


public class StateTest {

    public static void main(String[] args) {
        JFrame testFrame = new JFrame(StateTest.class.getSimpleName());
        testFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        final Label stateLabel = new Label();
        final StringScalarBox stringScalarBox = new StringScalarBox();
        final IKey key = new TangoKey();

        TangoKeyTool.registerAttribute(key, "tango/tangotest/titan/state");
        JButton connectButton = new JButton("connect/disconnect");
View Full Code Here

        chartViewer = new Chart();
        imageViewerData1 = new ImageViewer();
        imageViewerData1Bis = new ImageViewer();
        imageViewerData2 = new ImageViewer();
        actuatorLabel = new Label();
        actuatorField = new TextField();
        runNameField = new Label();
        stateField = new Label();

        JTabbedPane tabs = new JTabbedPane();

        imageViewerData1.setAlwaysFitMaxSize(true);
        imageViewerData1Bis.setAlwaysFitMaxSize(true);
View Full Code Here

        super();
    }

    @Override
    protected Label initWidget() {
        Label label = new Label();

        // set a plain font (Label's default display is bold)
        CometeFont cometeFont = label.getCometeFont();
        label.setCometeFont(new CometeFont(cometeFont.getName(), CometeFont.PLAIN, cometeFont
                .getSize()));

        return label;
    }
View Full Code Here

        super();
    }

    @Override
    protected Label initWidget() {
        @SuppressWarnings("serial")
        Label label = new Label() {
            @Override
            public String getText() {
                String result = "";
                // only display attribute's label (we are not interested in its value)
                if (isWidgetConnected()) {
                    result = TangoAttributeHelper.getLabel(getDeviceName(), getAttributeName());
                }
                else {
                    // if not connected, use error text if any (ie default value)
                    result = super.getText();
                }
                return result;
            }
        };

        // set a plain font (Label's default display is bold)
        CometeFont cometeFont = label.getCometeFont();
        label.setCometeFont(new CometeFont(cometeFont.getName(), CometeFont.PLAIN, cometeFont
                .getSize()));

        return label;
    }
View Full Code Here

        TangoKey numberScalarKey = new TangoKey();
        TangoKeyTool.registerAttribute(numberScalarKey, "tango/tangotest/1", "ampli");
        TangoKey numberScalarWriteKey = new TangoKey();
        TangoKeyTool.registerWriteAttribute(numberScalarWriteKey, "tango/tangotest/1", "ampli");

        Label stringLabel = new Label();
        Label numberLabel = new Label();
        Label booleanLabel = new Label();

        ComboBox stringCombo = new ComboBox();
        NumberComboBox numberCombo = new NumberComboBox();
        BooleanComboBox booleanCombo = new BooleanComboBox();
        StringMatrixComboBoxViewer matrixCombo = new StringMatrixComboBoxViewer();
View Full Code Here

        super();
    }

    @Override
    protected Label initWidget() {
        return new Label();
    }
View Full Code Here

        super();
    }

    @Override
    protected Label initWidget() {
        @SuppressWarnings("serial")
        Label label = new Label() {
            @Override
            public String getText() {
                String result = "";
                // only display attribute's label
                if (isWidgetConnected()) {
View Full Code Here

        }
    }

    public Label getUnitLabel() {
        if (unitLabel == null) {
            unitLabel = new Label();
            unitLabel.setCometeFont(UNIT_FONT);
            unitLabel.setText(UNIT_TEXT);
        }
        return unitLabel;
    }
View Full Code Here

        }
    }

    public Label getUnitLabel() {
        if (this.unitLabel == null) {
            this.unitLabel = new Label();
            this.unitLabel.setText("Unit");
        }
        return this.unitLabel;
    }
View Full Code Here

TOP

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

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.