Examples of Scale


Examples of org.eclipse.swt.widgets.Scale

                  }
                  {
                    GridData speedControlLData = new GridData();
                    speedControlLData.widthHint = 183;
                    speedControlLData.heightHint = 42;
                    speedControl = new Scale(composite9,
                        SWT.NONE);
                    speedControl
                        .setLayoutData(speedControlLData);
                    speedControl
                        .setMinimum(Defines.MIN_SPEED_PERCENT);
View Full Code Here

Examples of org.eclipse.swt.widgets.Scale

                      }
                      {
                        GridData speedControlLData = new GridData();
                        speedControlLData.widthHint = 183;
                        speedControlLData.heightHint = 42;
                        speedControl = new Scale(composite9, SWT.NONE);
                        speedControl.setLayoutData(speedControlLData);
                        speedControl.setMinimum( Defines.MIN_SPEED_PERCENT );
                        speedControl.setMaximum( Defines.MAX_SPEED_PERCENT );
                        speedControl.setSelection( 100 );
                        speedControl.setToolTipText("Velocidad de Reproducci�n");
View Full Code Here

Examples of org.eclipse.swt.widgets.Scale

    compression.setText("Compression level");
   
    Composite sliderComposite = new Composite(compression, SWT.NONE);
    sliderComposite.setLayout(new GridLayout(3, false));
    new Label(sliderComposite, SWT.NONE).setText("Fast");
    compressionScale = new Scale(sliderComposite, SWT.NONE);
    compressionScale.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    new Label(sliderComposite, SWT.NONE).setText("Best");
   
    Composite labelComposite = new Composite(compression, SWT.NONE);
    labelComposite.setLayout(new GridLayout(1, true));
View Full Code Here

Examples of org.eclipse.swt.widgets.Scale

    quality.setText("Quality");
   
    Composite sliderComposite = new Composite(quality, SWT.NONE);
    sliderComposite.setLayout(new GridLayout(3, false));
    new Label(sliderComposite, SWT.NONE).setText("Low");
    qualityScale = new Scale(sliderComposite, SWT.NONE);
    qualityScale.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
    new Label(sliderComposite, SWT.NONE).setText("High");
   
    Composite labelComposite = new Composite(quality, SWT.NONE);
    labelComposite.setLayout(new GridLayout(1, false));
View Full Code Here

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

Examples of org.mapfish.print.map.Scale

        }

        @Nonnull
        @Override
        protected ReferencedEnvelope getTileCacheBounds() {
            double scaleDenominator = new Scale(this.matrix.scaleDenominator).toResolution(this.bounds.getProjection(), getLayerDpi());
            double minX = this.matrix.topLeftCorner[0];
            double minY = this.matrix.topLeftCorner[1] - (this.matrix.getTileHeight() * this.matrix.matrixSize[1] * scaleDenominator);
            double maxX = this.matrix.topLeftCorner[0] + (this.matrix.getTileWidth() * this.matrix.matrixSize[0] * scaleDenominator);
            double maxY = this.matrix.topLeftCorner[1];
            return new ReferencedEnvelope(minX, maxX, minY, maxY, bounds.getProjection());
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.interaction.swtwidgets.Scale

      
    case SCALE:
      PropertyValue<Integer> low = Properties.produceMaybeComputedValue(Types.INT,c.get(0),properties,env);
      PropertyValue<Integer> high = Properties.produceMaybeComputedValue(Types.INT,c.get(1),properties,env);
      PropertyValue<Integer> selection = Properties.produceMaybeComputedValue(Types.INT,c.get(2),properties,env);
      return new Scale(env, Dimension.X, low,high, selection, c.get(3), properties);
    case MOUSEOVER:
       under = makeChild(0,env,c,properties,childPropsNext);
       over =  makeChild(1,env,c,properties,childPropsNext);
       return new MouseOver(under, over, properties);
    case PACK: 
View Full Code Here

Examples of org.wicketstuff.jwicket.ui.effect.Scale

    pulsate2.setSpeed(10);
    pulsate2.setMode(EffectMode.SHOW).setTimes(4);
    postEffects.add(pulsate2);

   
    Scale scale1 = new Scale();
    add(scale1);
    scale1.setSpeed(1000);
    scale1.setDirection(ScaleDirection.BOTH);
    scale1.setElement(ScaleElement.BOTH);
    scale1.setFrom(10, 10);
    scale1.setPercen(200);
    postEffects.add(scale1);
   
    Scale scale2 = new Scale();
    add(scale2);
    scale2.setSpeed(1000);
    scale2.setDirection(ScaleDirection.BOTH);
    scale2.setElement(ScaleElement.BOTH);
    scale2.setPercen(50);
    postEffects.add(scale2);

   
    Shake shake1 = new Shake();
    add(shake1);
View Full Code Here

Examples of ptolemy.actor.lib.Scale

            for (int i = 0; i < n; i++) {
                for (int j = 0; j < n; j++) {
                    // We don't create the Scale if the corresponding element
                    // in the A matrix is 0.
                    feedback[i][j] = new Scale(this, "feedback_" + i + "_" + j);
                    feedback[i][j].factor.setExpression("A(" + i + ", " + j
                            + ")");
                    feedback[i][j].input.link(states[j]);
                    connect(feedback[i][j].output, stateAdders[i].plus);
                }
            }

            // Inputs
            Scale[][] inputScales = new Scale[n][m];
            IORelation[] inputs = new IORelation[m];

            for (int j = 0; j < m; j++) {
                inputs[j] = new TypedIORelation(this, "relation_input_" + j);
                input.link(inputs[j]);

                // Create input scales.
                for (int i = 0; i < n; i++) {
                    // We create a scale for each input even if the
                    // corresponding element in B is 0. Otherwise,
                    // if the elements of A's in this row are also zero,
                    // then we will have an illegal topology.
                    inputScales[i][j] = new Scale(this, "b_" + i + "_" + j);
                    inputScales[i][j].factor.setExpression("B(" + i + ", " + j
                            + ")");
                    inputScales[i][j].input.link(inputs[j]);
                    connect(inputScales[i][j].output, stateAdders[i].plus);
                }
            }

            // Outputs
            AddSubtract[] outputAdders = new AddSubtract[r];
            Scale[][] outputScales = new Scale[r][n];

            for (int l = 0; l < r; l++) {
                outputAdders[l] = new AddSubtract(this, "outputAdder" + l);
                connect(outputAdders[l].output, output);

                // Create the output scales only if the corresponding
                // 'c' element is not 0.
                for (int i = 0; i < n; i++) {
                    outputScales[l][i] = new Scale(this, "outputScale_" + l
                            + "_" + i);
                    outputScales[l][i].factor.setExpression("C(" + l + ", " + i
                            + ")");
                    outputScales[l][i].input.link(states[i]);
                    connect(outputScales[l][i].output, outputAdders[l].plus);
                }
            }

            // Direct feed through.
            Scale[][] feedThrough = new Scale[r][m];

            for (int l = 0; l < r; l++) {
                for (int j = 0; j < m; j++) {
                    // Create the scale only if the element is not 0.
                    feedThrough[l][j] = new Scale(this, "feedThrough_" + l
                            + "_" + j);
                    feedThrough[l][j].factor.setExpression("D(" + l + ", " + j
                            + ")");
                    feedThrough[l][j].input.link(inputs[j]);
                    connect(feedThrough[l][j].output, outputAdders[l].plus);
View Full Code Here

Examples of ptolemy.actor.lib.Scale

            if (n == 1) {
                // Algebraic system
                if (a[0] == b[0]) {
                    connect(input, output);
                } else {
                    Scale scaleD = new Scale(this, "ScaleD");
                    scaleD.factor.setToken(new DoubleToken(b[0] / a[0]));
                    connect(input, scaleD.input);
                    connect(output, scaleD.output);
                }
            } else {
                double d = b[0] / a[0];
                int order = n - 1;
                AddSubtract inputAdder = new AddSubtract(this, "InputAdder");
                AddSubtract outputAdder = new AddSubtract(this, "OutputAdder");
                Integrator[] integrators = new Integrator[order];
                IORelation[] nodes = new IORelation[order];
                Scale[] feedback = new Scale[order];
                Scale[] feedforward = new Scale[order];

                for (int i = 0; i < order; i++) {
                    // The integrator names are d0x, d1x, etc.
                    integrators[i] = new Integrator(this, "Integrator" + i);
                    feedback[i] = new Scale(this, "Feedback" + i);
                    feedback[i].factor.setToken(new DoubleToken(-a[i + 1]
                            / a[0]));
                    feedforward[i] = new Scale(this, "Feedforward" + i);
                    feedforward[i].factor.setToken(new DoubleToken(
                            (b[i + 1] - (d * a[i + 1])) / a[0]));

                    // connections
                    nodes[i] = (IORelation) connect(integrators[i].output,
                            feedforward[i].input, "node" + i);
                    feedback[i].input.link(nodes[i]);
                    connect(feedback[i].output, inputAdder.plus);
                    connect(feedforward[i].output, outputAdder.plus);

                    if (i >= 1) {
                        integrators[i].input.link(nodes[i - 1]);
                    }
                }

                connect(inputAdder.output, integrators[0].input);

                IORelation inputRelation = (IORelation) connect(input,
                        inputAdder.plus, "inputRelation");
                connect(output, outputAdder.output, "outputRelation");

                if (d != 0) {
                    Scale scaleD = new Scale(this, "ScaleD");
                    scaleD.factor.setToken(new DoubleToken(d));
                    scaleD.input.link(inputRelation);
                    connect(scaleD.output, outputAdder.plus);
                }
            }
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.