Examples of redraw()


Examples of org.eclipse.swt.widgets.Canvas.redraw()

          itemBack.setEnabled(browser.isBackEnabled());
          itemForward.setEnabled(browser.isForwardEnabled());
          progressBar.setSelection(0);
          busy = false;
          index = 0;
          canvas.redraw();
        }
      });
      browser.addStatusTextListener(new StatusTextListener() {
        public void changed(StatusTextEvent event) {
          status.setText(event.text);
View Full Code Here

Examples of org.eclipse.swt.widgets.Composite.redraw()

  public void setText(String text)
  {
    shell.setText(text);
    Composite windowTitle = (Composite) titleArea.getData("title");
    windowTitle.redraw();
    windowTitle.update();
  }

  public void setBounds(Rectangle bounds)
  {
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.redraw()

    sash.addListener(SWT.Selection, sashListener);

    sash.addListener(SWT.Resize, new Listener() {
      @SuppressWarnings("unused")
      public void handleEvent(Event event) {
        sash.redraw();
      }
    });

    sash.addListener(SWT.Paint, new Listener() {
      @SuppressWarnings("unused")
View Full Code Here

Examples of org.eclipse.swt.widgets.Control.redraw()

        int verticalRulerWidth= fVerticalRuler.getWidth();
        final Control verticalRulerControl= fVerticalRuler.getControl();
        int oldWidth= verticalRulerControl.getBounds().width;
        verticalRulerControl.setBounds(clArea.x, clArea.y + topTrim, verticalRulerWidth, clArea.height - scrollbarHeight - topTrim);
        if (flushCache && getVisualAnnotationModel() != null && oldWidth == verticalRulerWidth)
          verticalRulerControl.redraw();

        x += verticalRulerWidth + fGap;
        width -= verticalRulerWidth + fGap;
      }
View Full Code Here

Examples of org.eclipse.swt.widgets.Label.redraw()

      @Override
      public void selectionChanged(SelectionChangedEvent event) {
        data = getData();
        coa.setImage(Activator.getImageForCOA(data));
        coa.redraw();
      }
    };

    layoutCombo.addSelectionChangedListener(listener);
    color1Combo.addSelectionChangedListener(listener);
View Full Code Here

Examples of org.eclipse.swt.widgets.Shell.redraw()

        Button[] affects = getAffected(selected, xDiff);
       
        Rectangle oldBounds = selected.getBounds();
        Rectangle newBounds = new Rectangle(oldBounds.x + xDiff, oldBounds.y, oldBounds.width, oldBounds.height);
        selected.setBounds(newBounds);
        shell.redraw(oldBounds.x, oldBounds.y, oldBounds.width, oldBounds.height, true);
        shell.redraw(newBounds.x, newBounds.y, newBounds.width, newBounds.height, true);
       
        for (Button affect : affects) {
          Rectangle bounds = affect.getBounds();
         
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.redraw()

      //In case item isn't displayed bounds is null
      if (bounds == null)
        return;

      // This should trigger a doPaint(gc)
      table.redraw(bounds.x, bounds.y, bounds.width, bounds.height, true);
    } else {
      doPaint((GC) null);
    }
  }
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.redraw()

     
      public void mouseUp(MouseEvent e) {
        mousePressed = false;
        //1. Restore old image
        if(oldPoint != null) {
          table.redraw(oldPoint.x, oldPoint.y, shell.getSize().x,
              oldPoint.y + 2, false);
          oldPoint = null;
        }
        Point p = new Point(e.x,e.y);
        TableItem item = table.getItem(p);
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.redraw()

        int selectedPosition = table.indexOf(selectedItem);
        int newPosition = table.indexOf(item);

        //1. Restore old area
        if(oldPoint != null) {
          table.redraw(oldPoint.x, oldPoint.y, bounds.width, oldPoint.y + 2, false);
          oldPoint = null;
        }           
        bounds.y += VerticalAligner.getTableAdjustVerticalBy(table);
        if(newPosition <= selectedPosition)
          oldPoint = new Point(bounds.x,bounds.y);
View Full Code Here

Examples of org.eclipse.swt.widgets.Table.redraw()

          oldPoint = new Point(bounds.x,bounds.y);
        else
          oldPoint = new Point(bounds.x,bounds.y+bounds.height);

        //3. Draw a thick line
        table.redraw(oldPoint.x, oldPoint.y, bounds.width, oldPoint.y + 2, false);
      }
    });
   
    table.addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent e) {
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.