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

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


     */
    private Label getPositionScalarViewer() {
        if (this.positionScalarViewer == null) {
            this.positionScalarViewer = generateLabel();
            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 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

        final List<CometeFont> fonts = new ArrayList<CometeFont>(fields.length);
        for (Field field : fields) {
            try {
                Object object = field.get(null);
                if (object instanceof CometeFont) {
                    CometeFont theFont = (CometeFont) object;
                    fonts.add(theFont);
                    fontList.add(field.getName() + " (" + theFont.getName() + ", " + theFont.getStyle() + ", "
                            + theFont.getSize() + ")");
                }
            }
            catch (Exception e) {
                e.printStackTrace();
            }
View Full Code Here

        getFontButton.setText("getCometeFont");

        getFontButton.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent arg0) {
                CometeFont cometeFont = theComponent.getCometeFont();
                // String message = cometeFont.toString();
                String message = cometeFont.getClass().getName() + ": " + cometeFont.getName() + ", "
                + cometeFont.getStyle() + ", " + cometeFont.getSize();

                MessageBox mb = new MessageBox(IComponentTestPanel.this.getShell(), SWT.ICON_INFORMATION | SWT.OK);
                mb.setText("Current Comete font");
                mb.setMessage(message);
                mb.open();
View Full Code Here

    }

    @Override
    public CometeFont getCometeFont() {

        CometeFont cometeFont = null;
        if (component != null) {
            cometeFont = component.getCometeFont();
        }
        else {
            Font swtFont = super.getFont();
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.