org.eclipse.swt.widgets.Canvas.isDisposed()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(194)

本文整理了Java中org.eclipse.swt.widgets.Canvas.isDisposed()方法的一些代码示例,展示了Canvas.isDisposed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.isDisposed()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:isDisposed

Canvas.isDisposed介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

public void run() {
 if ( !shell.isDisposed() && !canvas.isDisposed() ) {
  updateCanvas();
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public boolean setFocus() {
 return ( canvas != null && !canvas.isDisposed() ) ? canvas.setFocus() : false;
}

代码示例来源:origin: pentaho/pentaho-kettle

public void run() {
 if ( perfComposite != null
  && !perfComposite.isDisposed() && canvas != null && !canvas.isDisposed() && transPerfTab != null
  && !transPerfTab.isDisposed() ) {
  if ( transPerfTab.isShowing() ) {
   updateCanvas();
  }
 }
}

代码示例来源:origin: pentaho/pentaho-kettle

public void redraw() {
 if ( isDisposed() || canvas.isDisposed() ) {
  return;
 }
 canvas.redraw();
 setZoomLabel();
}

代码示例来源:origin: pentaho/pentaho-kettle

public void run() {
  if ( metricsComposite != null && !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed()
    && jobMetricsTab != null && !jobMetricsTab.isDisposed() ) {
   if ( jobMetricsTab.isShowing() ) {
    canvas.redraw();
   }
  }
 }
} );

代码示例来源:origin: pentaho/pentaho-kettle

public void run() {
  if ( metricsComposite != null
   && !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed() && transMetricsTab != null
   && !transMetricsTab.isDisposed() ) {
   if ( transMetricsTab.isShowing() ) {
    canvas.redraw();
   }
  }
 }
} );

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void perform(TimerEvent event) {
    if ( downSpeedCanvas.isDisposed()){
      timerEvent.cancel();
    }else{
      periodicUpdate();
    }
  }
});

代码示例来源:origin: BiglySoftware/BiglyBT

public void dispose() {
  if(canvas != null && !canvas.isDisposed()) {
    canvas.dispose();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void
  run()
  {
    unavailable = true;
    if ( !canvas.isDisposed()){
      canvas.redraw();
    }
  }
});

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public final void redraw() {
  if (fCanvas != null && !fCanvas.isDisposed())
    fCanvas.redraw();
}

代码示例来源:origin: BiglySoftware/BiglyBT

public void setAlpha(int alpha) {
  this.alpha = alpha;
  if (canvas != null && !canvas.isDisposed()) {
    canvas.redraw();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

public void setAlpha(int alpha) {
  this.alpha = alpha;
  if (drawCanvas != null && !drawCanvas.isDisposed()) {
    drawCanvas.redraw();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void runSupport() {
    if (canvas != null && !canvas.isDisposed()) {
      canvas.redraw();
      canvas.update();
    }
  }
});

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

@Override
  public void run() {
    if (canvas.isDisposed()) return;
    if (busy) {
      index++;
      if (index == images.length) index = 0;
      canvas.redraw();
    }
    display.timerExec(150, this);
  }
});

代码示例来源:origin: org.xworker/xworker_swt

public void update(){
  initShell();
  
  if(canvas != null && !canvas.isDisposed()){
    canvas.redraw();
  }
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void runSupport() {
    if (canvas != null && !canvas.isDisposed()) {
      canvas.redraw();
      canvas.update();
    }
  }
});

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void runSupport() {
    if (cHeaderArea != null && !cHeaderArea.isDisposed()) {
      cHeaderArea.redraw();
    }
    swt_fixupSize();
    redrawTable();
  }
});

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * Sets the background color of this column.
 *
 * @param background the background color
 */
public void setBackground(Color background) {
  fBackground= background;
  if (fCanvas != null && !fCanvas.isDisposed())
    fCanvas.setBackground(getBackground(fCanvas.getDisplay()));
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void setBackground(Color background) {
  fBackground= background;
  if (fCanvas != null && !fCanvas.isDisposed())
    fCanvas.setBackground(getBackground());
  fRevisionPainter.setBackground(background);
  fDiffPainter.setBackground(background);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public void redraw() {
  if (fCanvas != null && !fCanvas.isDisposed()) {
    if (VerticalRuler.AVOID_NEW_GC) {
      fCanvas.redraw();
    } else {
      GC gc= new GC(fCanvas);
      doubleBufferPaint(gc);
      gc.dispose();
    }
  }
}

相关文章

Canvas类方法