Examples of RowLayout


Examples of org.eclipse.swt.layout.RowLayout

    private static final String IMG_OSM = "osm.png"; //$NON-NLS-1$
   
    @Override
    protected Control buildControl(Composite composite) {
        Composite control = new Composite(composite, SWT.NONE);
        control.setLayout(new RowLayout(SWT.VERTICAL));
       
        Label text = new Label(control, SWT.HORIZONTAL | SWT.WRAP);
        text.setLayoutData(new RowData(400, 70));
        text.setText(Messages.Wizard_Osm_Info);
       
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

    }
   
    @Override
    protected Control buildControl(Composite composite) {
        Composite control = new Composite(composite, SWT.NONE);
        control.setLayout(new RowLayout(SWT.VERTICAL));
       
        //region Description
        Link text = new Link(control, SWT.HORIZONTAL | SWT.WRAP);
        text.setLayoutData(new RowData(400, 110));
        text.setText(Messages.Wizard_CS_Description);
        text.addListener (SWT.Selection, new Listener () {
            public void handleEvent(Event event) {
                Program.launch(Messages.Wizard_CS_UrlTileNames);
            }
        });
        //endregion
       
        //region URL
        Label lblUrl = new Label (control, SWT.HORIZONTAL | SWT.BOLD);
        lblUrl.setText(Messages.Wizard_CS_Url);
       
        Font boldFont = JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);
        lblUrl.setFont(boldFont);
       
        txtUrl = new Text (control, SWT.BORDER);
        txtUrl.setLayoutData(new RowData(380, 20));
        txtUrl.setText(Messages.Wizard_CS_UrlDefault);
        //endregion
       
        // type
        typeButton = new Button(control, SWT.CHECK);
        typeButton.setLayoutData(new RowData(380, 20));
        typeButton.setText("Handle as TMS as opposed to Google tile schema.");
        // end type
       
       
        //region Zoom-Range
        Composite compositeRow = new Composite(control, SWT.NONE);
        compositeRow.setLayout(new RowLayout(SWT.HORIZONTAL));
       
        Composite compositeZoom = new Composite(compositeRow, SWT.NONE);
        compositeZoom.setLayout(new RowLayout(SWT.VERTICAL));
        compositeZoom.setLayoutData(new RowData(200, 100));
       
        Label lblZoom = new Label (compositeZoom, SWT.HORIZONTAL | SWT.BOLD);
        lblZoom.setText(Messages.Wizard_CS_ZoomLevel);
        lblZoom.setFont(boldFont);
       
        //region Zoom-Min
        Composite compositeRowZoom = new Composite(compositeZoom, SWT.NONE);
        compositeRowZoom.setLayout(new GridLayout(2, true));
        Label lblZoomMin = new Label (compositeRowZoom, SWT.HORIZONTAL | SWT.BOLD);
        lblZoomMin.setText(Messages.Wizard_CS_Min);
               
        spZoomMin = new Spinner (compositeRowZoom, SWT.BORDER | SWT.READ_ONLY);
        spZoomMin.setMinimum(0);
        spZoomMin.setMaximum(22);
        spZoomMin.setSelection(2);
        spZoomMin.setIncrement(1);
        spZoomMin.pack();
        //endregion

        //region Zoom-Max
        Label lblZoomMax = new Label (compositeRowZoom, SWT.HORIZONTAL | SWT.BOLD);
        lblZoomMax.setText(Messages.Wizard_CS_Max);
               
        spZoomMax = new Spinner (compositeRowZoom, SWT.BORDER | SWT.READ_ONLY);
        spZoomMax.setMinimum(0);
        spZoomMax.setMaximum(22);
        spZoomMax.setSelection(18);
        spZoomMax.setIncrement(1);
        spZoomMax.pack();
        //endregion
        //endregion

        //region Tags
        Composite compositeTags = new Composite(compositeRow, SWT.NONE);
        compositeTags.setLayout(new RowLayout(SWT.VERTICAL));
       
        Label lblTags = new Label (compositeTags, SWT.HORIZONTAL | SWT.BOLD);
        lblTags.setText(Messages.Wizard_CS_AvailableTags);
        lblTags.setFont(boldFont);
View Full Code Here

Examples of org.eclipse.swt.layout.RowLayout

    private static final String IMG_NASA = "nasa.png"; //$NON-NLS-1$
   
    @Override
    protected Control buildControl(Composite composite) {
        Composite control = new Composite(composite, SWT.NONE);
        control.setLayout(new RowLayout(SWT.VERTICAL));
       
        Label text = new Label(control, SWT.HORIZONTAL | SWT.WRAP);
        text.setLayoutData(new RowData(400, 60));
        text.setText(Messages.Wizard_Nasa_Info);
       
View Full Code Here

Examples of org.nlogo.awt.RowLayout

    layout.setVgap(0);
    setLayout(layout);
    if (workspace.kioskLevel == GUIWorkspace.KioskLevel.NONE) {
      javax.swing.JPanel sizeControlPanel = new javax.swing.JPanel();
      sizeControlPanel.setLayout
          (new RowLayout(1, java.awt.Component.RIGHT_ALIGNMENT,
              java.awt.Component.CENTER_ALIGNMENT));

      sizeControlXY = new SizeControl("/images/arrowsdiag.gif", 1, 1);
      sizeControlXY.setToolTipText("Change width and height of world");
      sizeControlPanel.add(sizeControlXY);
View Full Code Here

Examples of org.terasology.rendering.nui.layouts.RowLayout

        UISlider mouseSensitivity = new UISlider("mouseSensitivity");
        mouseSensitivity.setIncrement(0.025f);
        mouseSensitivity.setPrecision(3);

        mainLayout.addWidget(new UILabel("mouseLabel", "heading-input", "Mouse"));
        mainLayout.addWidget(new RowLayout(new UILabel("Mouse Sensitivity:"), mouseSensitivity).setColumnRatios(0.4f).setHorizontalSpacing(horizontalSpacing));
        mainLayout.addWidget(new RowLayout(new UILabel("Invert Mouse:"), new UICheckbox("mouseYAxisInverted")).setColumnRatios(0.4f).setHorizontalSpacing(horizontalSpacing));

        Map<String, InputCategory> inputCategories = Maps.newHashMap();
        Map<SimpleUri, RegisterBindButton> inputsById = Maps.newHashMap();
        DependencyResolver resolver = new DependencyResolver(moduleManager.getRegistry());
        for (Name moduleId : moduleManager.getRegistry().getModuleIds()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.