Package org.eclipse.swt.widgets

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


        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

            linkExited(hyperlink);
        }
        hyperlink = link;
        hyperlink.linkEntered();
        control.setCursor(getHandCursor());
        control.redraw();
        control.addMouseListener(this);
    }

    /**
     * Notification a link was exited.
View Full Code Here

    protected void linkExited(IHyperlink link) {
        link.linkExited();
        hyperlink = null;
        Control control = getTextWidget();
        control.setCursor(getTextCursor());
        control.redraw();
        control.removeMouseListener(this);
    }

    /*
     * (non-Javadoc)
 
View Full Code Here

                            if (part != null && part instanceof IConsoleView) {
                                ConsoleView view = (ConsoleView) part;
                                if (list.contains(view.getConsole())) {
                                    Control control = view.getCurrentPage().getControl();
                                    if (!control.isDisposed()) {
                                        control.redraw();
                                    }
                                }
                            }

                        }
View Full Code Here

        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

          int headerHeight= noArrows ? scrollbarHeight : arrowHeights[1];
          headerControl.setBounds(overviewRulerX, clArea.y + clArea.height - arrowHeights[1] - scrollbarHeight, overviewRulerWidth, headerHeight);
        } else {
          headerControl.setBounds(overviewRulerX, clArea.y, overviewRulerWidth, arrowHeights[0]);
        }
        headerControl.redraw();
      }
    }

    /**
     * Computes and caches the arrow heights of the vertical scroll bar.
View Full Code Here

        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

          int headerHeight= noArrows ? scrollbarHeight : arrowHeights[1];
          headerControl.setBounds(overviewRulerX, clArea.y + clArea.height - arrowHeights[1] - scrollbarHeight, overviewRulerWidth, headerHeight);
        } else {
          headerControl.setBounds(overviewRulerX, clArea.y, overviewRulerWidth, arrowHeights[0]);
        }
        headerControl.redraw();
      }
    }

    /**
     * Computes and caches the arrow heights of the vertical scroll bar.
View Full Code Here

      Control control = getControl();
      if(control.isDisposed()) {
        return null;
      }
      Point size = control.getSize();
      control.redraw(0, 0, size.x, size.y, true);
      return null;
    }
  }

  /**
 
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.