Examples of PaintListener


Examples of org.eclipse.swt.events.PaintListener

 
  private List<ExSliderModifyListener> listener_list = new LinkedList<ExSliderModifyListener>();
 
  public ExSlider(Composite parent) {
    super(parent, SWT.NONE);
    addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent arg0) {
        draw();
      }
    });
    addMouseListener(new MouseListener() {
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

    if (orientation == SWT.FILL) {
      iStyle |= SWT.NO_REDRAW_RESIZE;
    }
    cBlockView = new Canvas(getTable(), iStyle);
    cBlockView.setBackground(null);
    cBlockView.addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent event) {
        if (event.width == 0 || event.height == 0)
          return;
        doPaint(event.gc.getClipping());
      }
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

        //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) {
        if (!mousePressed || selectedItem == null || oldPoint == null) {
          return;
        }
       
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

    if ((style & SWT.RIGHT) != 0)
      align = SWT.RIGHT;
    if ((style & SWT.LEFT) != 0)
      align = SWT.LEFT;

    addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent event) {
        onPaint(event);
      }
    });
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

    videosink = new RGBDataSink("GstVideoComponent", new RGBListener());
    videosink.setPassDirectBuffer(true);

    final Font font = new Font(getDisplay(), "Arial", 13, SWT.NORMAL);

    this.addPaintListener(new PaintListener() {

      public void paintControl(PaintEvent event) {
        Point cSize = getSize();
        if (currentImage != null) {
          event.gc.setFont(font);
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

      descriptionContainer.setLayout(LayoutUtils.createGridLayout(1));
      ((GridLayout) descriptionContainer.getLayout()).marginBottom = 5;
      descriptionContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 3, 1));
      descriptionContainer.addMouseTrackListener(fMouseTrackListner);
      descriptionContainer.setBackground(fInnerContentCircle.getBackground());
      descriptionContainer.addPaintListener(new PaintListener() {
        public void paintControl(PaintEvent e) {
          GC gc = e.gc;
          Rectangle clArea = descriptionContainer.getClientArea();

          gc.setForeground(fNotifierColors.getBorder());
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

    if ((style & SWT.RIGHT) != 0)
      align = SWT.RIGHT;
    if ((style & SWT.LEFT) != 0)
      align = SWT.LEFT;

    addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent event) {
        onPaint(event);
      }
    });
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

    final Composite conditionsContainer = new Composite(container, SWT.NONE);
    conditionsContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
    conditionsContainer.setLayout(LayoutUtils.createGridLayout(2, 5, 10));
    conditionsContainer.setBackground(container.getDisplay().getSystemColor(SWT.COLOR_WHITE));
    conditionsContainer.setBackgroundMode(SWT.INHERIT_FORCE);
    conditionsContainer.addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent e) {
        GC gc = e.gc;
        Rectangle clArea = conditionsContainer.getClientArea();
        gc.setForeground(conditionsContainer.getDisplay().getSystemColor(SWT.COLOR_GRAY));
        gc.drawLine(clArea.x, clArea.y, clArea.x + clArea.width, clArea.y);
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

      descriptionContainer.setLayout(LayoutUtils.createGridLayout(1));
      ((GridLayout) descriptionContainer.getLayout()).marginBottom = 5;
      descriptionContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 4, 1));
      descriptionContainer.addMouseTrackListener(fMouseTrackListner);
      descriptionContainer.setBackground(fInnerContentCircle.getBackground());
      descriptionContainer.addPaintListener(new PaintListener() {
        public void paintControl(PaintEvent e) {
          GC gc = e.gc;
          Rectangle clArea = descriptionContainer.getClientArea();

          gc.setForeground(fNotifierColors.getBorder());
View Full Code Here

Examples of org.eclipse.swt.events.PaintListener

    if ((style & SWT.RIGHT) != 0)
      align = SWT.RIGHT;
    if ((style & SWT.LEFT) != 0)
      align = SWT.LEFT;

    addPaintListener(new PaintListener() {
      public void paintControl(PaintEvent event) {
        onPaint(event);
      }
    });
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.