Examples of Slider


Examples of javafx.scene.control.Slider

                    ((showTickMarks) ? (trackToTickGap+tickLine.prefWidth(-1)) : 0) + rightInset;
        }
    }

    @Override protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
        final Slider s = getSkinnable();
        if (s.getOrientation() == Orientation.HORIZONTAL) {
            return topInset + Math.max(thumb.prefHeight(-1), track.prefHeight(-1)) +
                    ((showTickMarks) ? (trackToTickGap+tickLine.prefHeight(-1)) : 0+ bottomInset;
        } else {
            if(showTickMarks) {
                return Math.max(140, tickLine.prefHeight(-1));
View Full Code Here

Examples of mdes.slick.sui.Slider

       
        Container slider = new Container();
        slider.setSize(250, 10);
        slider.setLocation(575, 575);
       
        volume_slider = new Slider(Slider.HORIZONTAL);
        volume_slider.setLocation(0, 0);
        volume_slider.setHeight(10);
        volume_slider.setWidth(250);
        volume_slider.setOpaque(true);
        volume_slider.setBackground(new Color(0x00762900));
View Full Code Here

Examples of net.pleso.framework.client.ui.windows.Slider

      IActionProvider actionProvider,
      IUpdateControlListener updateControlListener,
      boolean allowCloseParentSlider) {
    super(parentWindow, actionProvider, updateControlListener);

    sliderDoAction = new Slider("", false, allowCloseParentSlider);

    if (this.actionProvider instanceof IDeleteRowProvider)
      throw new IllegalArgumentException(
          "Slider can't use IDeleteRowProvider");
View Full Code Here

Examples of org.apache.pivot.wtk.Slider

    @Override
    public void install(Component component) {
        super.install(component);

        Slider slider = (Slider)component;
        slider.add(thumb);
    }
View Full Code Here

Examples of org.apache.pivot.wtk.Slider

        slider.add(thumb);
    }

    @Override
    public int getPreferredWidth(int height) {
        Slider slider = (Slider)getComponent();

        int preferredWidth;
        if (slider.getOrientation() == Orientation.HORIZONTAL) {
            preferredWidth = DEFAULT_WIDTH;
        } else {
            preferredWidth = thumbHeight;
        }
View Full Code Here

Examples of org.apache.pivot.wtk.Slider

        return preferredWidth;
    }

    @Override
    public int getPreferredHeight(int width) {
        Slider slider = (Slider)getComponent();

        int preferredHeight;
        if (slider.getOrientation() == Orientation.HORIZONTAL) {
            preferredHeight = thumbHeight;
        } else {
            preferredHeight = DEFAULT_WIDTH;
        }
View Full Code Here

Examples of org.eclipse.swt.widgets.Slider

            try {
                final Browser browser = new Browser(parent, SWT.NONE);
                browser.dispose();
                fgIsAvailable = true;

                final Slider sliderV = new Slider(parent, SWT.VERTICAL);
                final Slider sliderH = new Slider(parent, SWT.HORIZONTAL);
                final int width = sliderV.computeSize(SWT.DEFAULT, SWT.DEFAULT).x;
                final int height = sliderH.computeSize(SWT.DEFAULT, SWT.DEFAULT).y;
                fgScrollBarSize = new Point(width, height);
                sliderV.dispose();
                sliderH.dispose();
            } catch (final SWTError er) {
                fgIsAvailable = false;
            } finally {
                fgAvailabilityChecked = true;
            }
View Full Code Here

Examples of org.eclipse.swt.widgets.Slider

        GridData manualEnterBetGroupLData = new GridData(SWT.FILL, SWT.CENTER, true, true);
        manualEnterBetGroupLData.minimumHeight = 40;
        manualEnterBetGroupLData.minimumWidth = gameActionGroupLData.minimumWidth;
        manualEnterBetGroup.setLayoutData(manualEnterBetGroupLData);
        {
          betSlider = new Slider(manualEnterBetGroup, SWT.NONE);
          betSlider.setIncrement(smallBlind);
          betSlider.setPageIncrement(betSlider.getIncrement() * 5);
          betSlider.setLayoutData(new GridData(130, 30));
          betSlider.addSelectionListener(new SelectionAdapter() {
           
View Full Code Here

Examples of org.eclipse.swt.widgets.Slider

        priorityLabelLayout.verticalAlignment = GridData.CENTER;
        priorityLabelLayout.horizontalSpan = 2;
        priorityLabel.setLayoutData(priorityLabelLayout);

        // Create the slider widget to control priority filtering
        Slider prioritySlider = new Slider(priorityPanel, SWT.HORIZONTAL);
        prioritySlider.setValues(0, 0, 100, 10, 1, 25);
        GlazedListsSWT.lowerThresholdViewer(priorityList, prioritySlider);
        GridData prioritySliderLayout = new GridData();
        prioritySliderLayout.horizontalAlignment = GridData.FILL;
        prioritySliderLayout.verticalAlignment = GridData.BEGINNING;
        prioritySliderLayout.horizontalSpan = 2;
        prioritySliderLayout.grabExcessHorizontalSpace = true;
        prioritySliderLayout.grabExcessVerticalSpace = false;
        prioritySlider.setLayoutData(prioritySliderLayout);

        // Create the lower end Label
        Label lowPriorityLabel = new Label(priorityPanel, SWT.HORIZONTAL | SWT.SHADOW_NONE | SWT.CENTER);
        lowPriorityLabel.setText("Low");
View Full Code Here

Examples of org.eclipse.swt.widgets.Slider

        Composite grp = new Composite(sliderGrp, SWT.NONE);
        grp.setLayout(new GridLayout(4, true));
        gd = new GridData(GridData.FILL_HORIZONTAL);
        grp.setLayoutData(gd);
       
        sliderConst = new Slider(grp,SWT.NONE);
        gd = new GridData(GridData.FILL_HORIZONTAL);
        gd.horizontalSpan = 3;
        sliderConst.setLayoutData(gd);
        sliderConst.setMinimum(0);
        sliderConst.setMaximum(255*2);
 
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.