Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Scale


        typeFileName.setLayoutData(new RowData(200, -1));
        typeFileName.setText(Activator.getDefault().getPluginPreferences().
                getString(PreferenceConstants.P_STRING_DEFAULT_TYPE_FILE));
        Label lb3 = new Label(c, SWT.NONE);
        lb3.setText("Value added at hit: ");
        sc = new Scale(c, SWT.HORIZONTAL);
        sc.setMaximum(128);
        sc.setMinimum(1);
        sc.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(final SelectionEvent e) {
                addValue = sc.getSelection();
            }
        });
        Label lb4 = new Label(c, SWT.NONE);
        lb4.setText("Value subtracted by time: ");
        sc2 = new Scale(c, SWT.HORIZONTAL);
        sc2.setMaximum(30);
        sc2.setMinimum(1);
        sc2.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(final SelectionEvent e) {
                loseValue = sc2.getSelection();
View Full Code Here


        typeFileName.setLayoutData(new RowData(200, -1));
        typeFileName.setText(Activator.getDefault().getPluginPreferences().
                getString(PreferenceConstants.P_STRING_DEFAULT_TYPE_FILE));
        Label lb3 = new Label(c, SWT.NONE);
        lb3.setText("Value added at hit: ");
        sc = new Scale(c, SWT.HORIZONTAL);
        sc.setMaximum(128);
        sc.setMinimum(1);
        sc.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(final SelectionEvent e) {
                addValue = sc.getSelection();
            }
        });
        Label lb4 = new Label(c, SWT.NONE);
        lb4.setText("Value subtracted by time: ");
        sc2 = new Scale(c, SWT.HORIZONTAL);
        sc2.setMaximum(30);
        sc2.setMinimum(1);
        sc2.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(final SelectionEvent e) {
                loseValue = sc2.getSelection();
View Full Code Here

        gridData5.horizontalAlignment = GridData.FILL;
        alphaGroup = new Group(this, SWT.NONE);
        alphaGroup.setLayoutData(gridData5);
        alphaGroup.setLayout(gridLayout1);
        alphaGroup.setText(Messages.CoverageColorEditor_10);
        alphaScale = new Scale(alphaGroup, SWT.NONE);
        alphaScale.setLayoutData(gridData6);
        alphaScale.setMinimum(0);
        alphaScale.setMaximum(100);
        alphaScale.setPageIncrement(10);
        alphaScale.setSelection(100);
View Full Code Here

        /* Border Opacity */
        Group borderOpacityArea = new Group(myparent, SWT.NONE);
        borderOpacityArea.setLayout(new GridLayout(2, false));
        borderOpacityArea.setText("Raster Opacity"); //$NON-NLS-1$
       
        opacityScale = new Scale(borderOpacityArea, SWT.HORIZONTAL);
        opacityScale.setMinimum(0);
        opacityScale.setMaximum(100);
        opacityScale.setPageIncrement(10);
        opacityScale.setBounds(0,0,10,SWT.DEFAULT);
        opacityScale.addSelectionListener(new SelectionAdapter(){
View Full Code Here

        gridData5.horizontalAlignment = GridData.FILL;
        alphaGroup = new Group(this, SWT.NONE);
        alphaGroup.setLayoutData(gridData5);
        alphaGroup.setLayout(gridLayout1);
        alphaGroup.setText("alpha");
        alphaScale = new Scale(alphaGroup, SWT.NONE);
        alphaScale.setLayoutData(gridData6);
        alphaScale.setMinimum(0);
        alphaScale.setMaximum(255);
        alphaScale.setPageIncrement(5);
        alphaScale.setSelection(255);
View Full Code Here

        control = new Composite(parent, style);
        control.setSize(400, 400);
       
        // RED
        if( multiLine ){
            redScale = new Scale(control, SWT.HORIZONTAL);
            redScale.setMaximum(MAX);
            redScale.setMinimum(MIN);
            redScale.setEnabled(true);
        }
        Label redLabel = new Label(control, SWT.SINGLE);
        redLabel.setText(multiLine ? "Red" : "R");

        redSpinner = new Spinner(control, SWT.BORDER);
        redSpinner.setMinimum(MIN);
        redSpinner.setMaximum(MAX);
        redSpinner.setEnabled(true);

        // GREEN
        if( multiLine ){
            greenScale = new Scale(control, SWT.HORIZONTAL);
            greenScale.setMaximum(MAX);
            greenScale.setMinimum(MIN);
        }
        Label greenLabel = new Label(control, SWT.SINGLE);
        greenLabel.setText(multiLine ? "Green" : "G");
       
        greenSpinner = new Spinner(control, SWT.BORDER);
        greenSpinner.setDigits(0);
        greenSpinner.setMinimum(MIN);
        greenSpinner.setMaximum(MAX);
       
        // BLUE
        if( multiLine ){
            blueScale = new Scale(control, SWT.HORIZONTAL);
            blueScale.setMaximum(MAX);
            blueScale.setMinimum(MIN);
        }
        Label blueLabel = new Label(control, SWT.SINGLE);
        blueLabel.setText(multiLine ? "Blue" : "B");
View Full Code Here

        lineColorLabel.setText(Messages.GridStyleConfigurator_LineColor);
        lineColor = new ColorEditor(container);

        opacityLabel = new Label(container, SWT.NONE);
        opacityLabel.setText(Messages.GraticuleStyleConfigurator_Opacity);
        opacity = new Scale(container, SWT.BORDER);
        opacity.setMaximum(255);
        opacity.setPageIncrement(5);
        opacity.setSelection(100);

        lineStyleLabel = new Label(container, SWT.NONE);
View Full Code Here

        Label minRankLabel = new Label(prioGroup, SWT.NONE);
        minRankLabel.setText(getMessage("property.minRank") + System.getProperty("line.separator")
                + getMessage("property.minRank.line2"));
        minRankLabel.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, false, false));

        minRankSlider = new Scale(prioGroup, SWT.DROP_DOWN | SWT.READ_ONLY);
        minRankSlider.setLayoutData(new GridData(SWT.BEGINNING, SWT.CENTER, true, false));
        minRankSlider.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent event) {
                int rank = minRankSlider.getSelection();
View Full Code Here

    bMinus.setText("-");
    bMinus.setLayoutData(new GridData(1, 1, false, false));
    bMinus.setBackground(bMinus.getParent().getBackground());
    bMinus.setToolTipText("decrement the zoom level");

    zoomScale = new Scale(bodyComposite, SWT.NONE);
    zoomScale.setLayoutData(new GridData(1, 1, false, false));
    zoomScale.setMinimum(0);
    zoomScale.setMaximum(4);
    zoomScale.setSelection(2);
    zoomScale.setPageIncrement(1);
View Full Code Here

    });

    nCaptionLabel = new Label(filteredLinksComposite, SWT.NONE);
    nCaptionLabel.setText("number of sub-patterns:");

    nScale = new Scale(filteredLinksComposite, SWT.NONE);
    nScale.setMinimum(1);
    nScale.setMaximum(10);
    nScale.setSelection(3);
    nScale.setIncrement(1);
    nScale.setLayoutData(gridData);
    nScale.setToolTipText("choose here the number of computed sub-patterns for the similarity check");
    nScale.setPageIncrement(1);

    nLabel = new Label(filteredLinksComposite, SWT.NONE);
    nLabel.setToolTipText("the number of computed sub-patterns for the similarity check");
    nCaptionLabel.setToolTipText(nLabel.getToolTipText());
    nLabel.setText("3"); // default value
    gridData = new GridData();
    gridData.horizontalSpan = 2;
    gridData.horizontalAlignment = SWT.FILL;
    gridData.grabExcessHorizontalSpace = true;
    nLabel.setLayoutData(gridData);

    nScale.addSelectionListener(new SelectionListener() {

      @Override
      public void widgetSelected(SelectionEvent e) {
        nLabel.setText(new Integer(getN()).toString());
        updateLists(false);
      }

      @Override
      public void widgetDefaultSelected(SelectionEvent e) {
      }
    });

    accuracyCaptionLabel = new Label(filteredLinksComposite, SWT.NONE);
    accuracyCaptionLabel.setText("accuracy:");

    accuracyScale = new Scale(filteredLinksComposite, SWT.NONE);
    accuracyScale.setMinimum(0);
    accuracyScale.setMaximum(10);
    accuracyScale.setSelection(8);
    accuracyScale.setIncrement(1);
    accuracyScale.setLayoutData(gridData);
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.