Examples of ScrollBar


Examples of org.eclipse.swt.widgets.ScrollBar

  }
 
  public void appendText(String text) {
    boolean scroll = false;
   
    ScrollBar vbar =  this.text.getVerticalBar();
    if ((vbar.getSelection() + vbar.getThumb()) >= vbar.getMaximum()) {
      scroll = true;
    }
   
    this.text.append(text);
   
View Full Code Here

Examples of org.eclipse.swt.widgets.ScrollBar

    parent.addControlListener(new ControlAdapter() {
      @Override
      public void controlResized(ControlEvent e) {
        Rectangle area = parent.getClientArea();
        Point size = coordinatesTable.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        ScrollBar vBar = coordinatesTable.getVerticalBar();
        int width = area.width - coordinatesTable.computeTrim(0, 0, 0, 0).width - vBar.getSize().x;
        if (size.y > area.height + coordinatesTable.getHeaderHeight()) {
          // Subtract the scrollbar width from the total column width
          // if a vertical scrollbar will be required
          Point vBarSize = vBar.getSize();
          width -= vBarSize.x;
        }
        Point oldSize = coordinatesTable.getSize();
        if (oldSize.x > area.width) {
          // table is getting smaller so make the columns
View Full Code Here

Examples of org.eclipse.swt.widgets.ScrollBar

                currentTabSize = sizeReference.computeSize(SWT.DEFAULT, SWT.DEFAULT);
            }
        }
        tabbedPropertyComposite.getScrolledComposite().setMinSize(currentTabSize);

        ScrollBar verticalScrollBar = tabbedPropertyComposite.getScrolledComposite()
                .getVerticalBar();
        if (verticalScrollBar != null) {
            Rectangle clientArea = tabbedPropertyComposite.getScrolledComposite().getClientArea();
            int increment = clientArea.height - 5;
            verticalScrollBar.setPageIncrement(increment);
        }

        ScrollBar horizontalScrollBar = tabbedPropertyComposite.getScrolledComposite()
                .getHorizontalBar();
        if (horizontalScrollBar != null) {
            Rectangle clientArea = tabbedPropertyComposite.getScrolledComposite().getClientArea();
            int increment = clientArea.width - 5;
            horizontalScrollBar.setPageIncrement(increment);
        }
    }
View Full Code Here

Examples of org.joshy.gfx.node.control.Scrollbar

    public Ruler(final boolean vertical, ScrollPane scrollPane, final DocContext context) {
        this.vertical = vertical;
        this.context = context;

        Scrollbar sp;
        if(vertical) {
            sp = scrollPane.getVerticalScrollBar();
        } else {
            sp = scrollPane.getHorizontalScrollBar();
        }
View Full Code Here

Examples of pivot.wtk.ScrollBar

     *
     * @return
     * <tt>&lt;number of legal pixel values&gt; / &lt;number of legal real values&gt;</tt>
     */
    private float getValueScale() {
        ScrollBar scrollBar = (ScrollBar)getComponent();

        float valueScale;

        int rangeStart = scrollBar.getRangeStart();
        int rangeEnd = scrollBar.getRangeEnd();
        int extent = scrollBar.getExtent();
        int maxLegalRealValue = rangeEnd - extent;

        int numLegalRealValues = maxLegalRealValue - rangeStart + 1;
        int numLegalPixelValues;

        if (scrollBar.getOrientation() == Orientation.HORIZONTAL) {
            int availableWidth = getWidth() - scrollUpButton.getWidth() -
                scrollDownButton.getWidth() + 2;
            numLegalPixelValues = availableWidth - handle.getWidth() + 1;
        } else {
            int availableHeight = getHeight() - scrollUpButton.getHeight() -
View Full Code Here

Examples of pu.web.client.gui.Scrollbar

   
    mChatbox = new PU_Chatbox(13, 571, 350, 110)
    mChatbox.setVisible(false);
    container.addChild(mChatbox);   
         
    mScrollbar = new Scrollbar(372, 573, 13, 103, Scrollbar.SCROLLBAR_VERTICAL);
    mScrollbar.setVisible(false);
    mScrollbar.getScroller().setVisible(false);
    mChatbox.setScrollbar(mScrollbar);   
    container.addChild(mScrollbar);
  }
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.