Package fr.soleil.comete.definition.widget.util

Examples of fr.soleil.comete.definition.widget.util.CometeFont


        TangoWidgetUtil.fireValueChanged(listenerList, data);
    }

    public void setFont(final Font f) {
        if (widget != null) {
            CometeFont cf = new CometeFont(f.getName(), f.getStyle(), f.getSize());
            widget.setCometeFont(cf);
        }
    }
View Full Code Here


    }

    public Font getFont() {
        Font f = null;
        if (widget != null) {
            CometeFont cf = widget.getCometeFont();
            f = new Font(cf.getName(),cf.getStyle(),cf.getSize());                       
        }
        return f;
    }
View Full Code Here

    @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

    @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

                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

    private Label getPositionScalarViewer() {
        if (this.positionScalarViewer == null) {
            this.positionScalarViewer = generateLabel();
            this.positionScalarViewer.setEditable(false);
            this.positionScalarViewer.setPreferredSize(6, 55);
            this.positionScalarViewer.setCometeFont(new CometeFont("Dialog", Font.BOLD, 25));
            this.positionScalarViewer.setHorizontalAlignment(ITextField.CENTER);
            this.positionScalarViewer.setMinimumSize(new Dimension(6, 55));
        }
        return this.positionScalarViewer;
    }
View Full Code Here

     */
    private WheelSwitch getPositionScalarWheelEditor() {
        if (this.positionScalarWheelEditor == null) {
            this.positionScalarWheelEditor = generateWheelSwitch();
            this.positionScalarWheelEditor.setPreferredSize(100, 50);
            this.positionScalarWheelEditor.setCometeFont(new CometeFont("Dialog", Font.PLAIN, 16));
            this.positionScalarWheelEditor.setOpaque(false);
            this.positionScalarWheelEditor.setMinimumSize(new Dimension(100, 50));
            this.positionScalarWheelEditor.setCometeBackground(this.backgdColor);
            this.positionScalarWheelEditor.setInvertionLogic(true);
        }
View Full Code Here

    private TextField getPositionScalarViewer() {
        if (this.positionScalarViewer == null) {
            this.positionScalarViewer = generateTextField();
            this.positionScalarViewer.setEditable(false);
            this.positionScalarViewer.setPreferredSize(6, 55);
            this.positionScalarViewer.setCometeFont(new CometeFont("Dialog", Font.BOLD, 25));
            this.positionScalarViewer.setHorizontalAlignment(ITextField.CENTER);
            this.positionScalarViewer.setMinimumSize(new Dimension(6, 55));
        }
        return this.positionScalarViewer;
    }
View Full Code Here

     */
    private WheelSwitch getPositionScalarWheelEditor() {
        if (this.positionScalarWheelEditor == null) {
            this.positionScalarWheelEditor = generateWheelSwitch();
            this.positionScalarWheelEditor.setPreferredSize(100, 50);
            this.positionScalarWheelEditor.setCometeFont(new CometeFont("Dialog", Font.PLAIN, 16));
            this.positionScalarWheelEditor.setOpaque(false);
            this.positionScalarWheelEditor.setMinimumSize(new Dimension(100, 50));
            this.positionScalarWheelEditor.setCometeBackground(this.backgdColor);
            this.positionScalarWheelEditor.setInvertionLogic(true);
        }
View Full Code Here

    private void initializeGUI() {
        setLayout(new BorderLayout());
        runName = generateLabel();
        runName.setText("No current scan");
        runName.setHorizontalAlignment(SwingConstants.CENTER);
        runName.setCometeFont(new CometeFont("DIALOG", Font.BOLD | Font.ITALIC, 12));
        add(runName, BorderLayout.NORTH);
        add(scrollPanel, BorderLayout.CENTER);
        scrollPanel.setViewportView(table);
        scrollPanel.setAutoscrolls(true);
        scrollPanel.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
View Full Code Here

TOP

Related Classes of fr.soleil.comete.definition.widget.util.CometeFont

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.