Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Scale


     
      zoomLevelLbl = new Label(containerCmp, SWT.NONE);
      zoomLevelLbl.setText(Messages.GMapsDetailsPanel_ZoomLbl1);
      zoomLevelLbl.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
     
      mapZoom = new Scale(containerCmp, SWT.NONE);
      mapZoom.setMinimum(0);
      mapZoom.setMaximum(19);
      mapZoom.setIncrement(1);
      mapZoom.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      mapZoom.addSelectionListener(new SelectionAdapter() {
View Full Code Here


    _scrolledComposite.setExpandHorizontal(true);
    _scrolledComposite.setExpandVertical(true);

    _canvas = new Canvas(_scrolledComposite, SWT.DOUBLE_BUFFERED);

    _zoomFactor = new AntScale(new Scale(this, SWT.VERTICAL), getController().getProject());
    _zoomFactor.getScale().setLayoutData("hmin 0, wmin pref, growy");
    _zoomFactor.getScale().setMinimum(5);
    _zoomFactor.getScale().setMaximum(300);
    _zoomFactor.setTooltipText("Hier k�nnen Sie den Zoom-Faktor einstellen, mit dem die Knoten und Kanten dargestellt werden.");
View Full Code Here

      } else if (control.equals("ProgressBar")) {
        ProgressBar progress = new ProgressBar(layoutComposite, SWT.NONE);
        progress.setSelection(50);
        children[i] = progress;
      } else if (control.equals("Scale")) {
        Scale scale = new Scale(layoutComposite, SWT.NONE);
        children[i] = scale;
      } else if (control.equals("Slider")) {
        Slider slider = new Slider(layoutComposite, SWT.NONE);
        children[i] = slider;
      } else if (control.equals("StyledText")) {
View Full Code Here

      style |= SWT.VERTICAL;
    if (borderButton.getSelection())
      style |= SWT.BORDER;

    /* Create the example widgets */
    scale1 = new Scale(scaleGroup, style);
  }
View Full Code Here

    toolSettingsFrame.setLayout(gridLayout);

    Label label = new Label(toolSettingsFrame, SWT.NONE);
    label.setText(PaintExample.getResourceString("settings.AirbrushRadius.text"));

    final Scale airbrushRadiusScale = new Scale(toolSettingsFrame, SWT.HORIZONTAL);
    airbrushRadiusScale.setMinimum(5);
    airbrushRadiusScale.setMaximum(50);
    airbrushRadiusScale.setSelection(toolSettings.airbrushRadius);
    airbrushRadiusScale.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL));
    airbrushRadiusScale.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        toolSettings.airbrushRadius = airbrushRadiusScale.getSelection();
        updateToolSettings();
      }
    });

    label = new Label(toolSettingsFrame, SWT.NONE);
    label.setText(PaintExample.getResourceString("settings.AirbrushIntensity.text"));

    final Scale airbrushIntensityScale = new Scale(toolSettingsFrame, SWT.HORIZONTAL);
    airbrushIntensityScale.setMinimum(1);
    airbrushIntensityScale.setMaximum(100);
    airbrushIntensityScale.setSelection(toolSettings.airbrushIntensity);
    airbrushIntensityScale.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_FILL));
    airbrushIntensityScale.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        toolSettings.airbrushIntensity = airbrushIntensityScale.getSelection();
        updateToolSettings();
      }
    });
  }
View Full Code Here

        robot.keyPress(KeyEvent.VK_ESCAPE);
        robot.keyRelease(KeyEvent.VK_ESCAPE);
      }
    });
   
    final Scale scale = new Scale(shell, SWT.HORIZONTAL);
    scale.setBounds(10, 570, 400, 80);
    scale.setMaximum(255);
    scale.setMinimum(50);
    scale.setPageIncrement(10);
    scale.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        int perspectiveValue = scale.getMaximum() - scale.getSelection() +  scale.getMinimum();
        shell.setAlpha(perspectiveValue);
      }
    });
   
     
View Full Code Here

            }
        };
       
        TextOverlayPainter.install( this.textField, textOverlayPainterController );
       
        this.scale = new Scale( composite, SWT.HORIZONTAL );
        this.scale.setLayoutData( gdhfill() );
        this.scale.setMinimum( this.minimum );
        this.scale.setMaximum( this.maximum );
        this.scale.setIncrement( 1 );
        this.scale.setPageIncrement( 1 );
View Full Code Here

        CLabel logLevel = new CLabel(loggingComposite, SWT.NONE);
        logLevel.setText("Log level:   --");
        logLevel.setLayoutData(new GridData(SWT.BEGINNING));

        // 4. Log levels scale
        logLevelScale = new Scale(loggingComposite, SWT.NULL);
        logLevelScale.setIncrement(1);
        logLevelScale.setMaximum(7);
        logLevelScale.setEnabled(false);
        logLevelScale.setPageIncrement(1);
        logLevelScale.setLayoutData(new GridData(SWT.BEGINNING));
View Full Code Here

    grpRunTests.setText("Run Tests Logging Setting");
    grpRunTests.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, true));
    grpRunTests.setLayout(new GridLayout(4, true));
    Label label = new Label(grpRunTests, SWT.NONE);
    label.setText("Logging Level");
    scale = new Scale(grpRunTests, SWT.NONE);
    scale.setMaximum(3);
    scale.setPageIncrement(1);
    scale.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event event) {
                int level = scale.getSelection();
View Full Code Here

     *            the parent
     * @return the scale control
     */
    private Scale getScaleControl(Composite parent) {
        if (scale == null) {
            scale = new Scale(parent, SWT.HORIZONTAL);
            scale.setFont(parent.getFont());
            scale.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent event) {
                    valueChanged();
                }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Scale

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.