org.eclipse.swt.graphics.Region.dispose()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(123)

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

Region.dispose介绍

暂无

代码示例

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

@Override
  public void widgetDisposed(DisposeEvent arg0) {
    region.dispose();
  }
});

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

void dispose() {
 if(!hoverShell.isDisposed()) {
  hoverShell.dispose();
 }
 if(region != null) {
  region.dispose();
 }
}

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

void dispose() {
  if (!hoverShell.isDisposed()) {
    hoverShell.dispose();
  }
  if (region != null) {
    region.dispose();
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

void dispose() {
  if (!hoverShell.isDisposed()) {
    hoverShell.dispose();
  }
  if (region != null) {
    region.dispose();
  }
}

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

void dispose() {
  if (!hoverShell.isDisposed()) {
    hoverShell.dispose();
  }
  if (region != null) {
    region.dispose();
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

void dispose() {
  if (!hoverShell.isDisposed()) {
    hoverShell.dispose();
  }
  if (region != null) {
    region.dispose();
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench

@Override
public void dispose() {
  super.dispose();
  if (!shellRegion.isDisposed())
    shellRegion.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.e4.ui.workbench.addons.swt

public void dispose() {
  if (feedbackShell != null && !feedbackShell.isDisposed()) {
    Region region = feedbackShell.getRegion();
    if (region != null && !region.isDisposed()) {
      region.dispose();
    }
    feedbackShell.dispose();
  }
  feedbackShell = null;
}

代码示例来源:origin: org.eclipse.e4.ui.workbench.addons/swt

public void dispose() {
  if (feedbackShell != null && !feedbackShell.isDisposed()) {
    Region region = feedbackShell.getRegion();
    if (region != null && !region.isDisposed())
      region.dispose();
    feedbackShell.dispose();
  }
  feedbackShell = null;
}

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

void setNewShape() {
    Region oldRegion = region;
    region = new Region();
    region.add(getPolygon(false));
    hoverShell.setRegion(region);
    if (oldRegion != null) {
      oldRegion.dispose();
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

void setNewShape() {
    Region oldRegion = region;
    region = new Region();
    region.add(getPolygon(false));
    hoverShell.setRegion(region);
    if (oldRegion != null) {
      oldRegion.dispose();
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

void setNewShape() {
  Region oldRegion = region;
  region = new Region();
  region.add(getPolygon(false));
  hoverShell.setRegion(region);
  if(oldRegion != null) {
   oldRegion.dispose();
  }
 }
}

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

void setNewShape() {
    Region oldRegion = region;
    region = new Region();
    region.add(getPolygon(false));
    hoverShell.setRegion(region);
    if (oldRegion != null) {
      oldRegion.dispose();
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface

void setNewShape() {
    Region oldRegion = region;
    region = new Region();
    region.add(getPolygon(false));
    hoverShell.setRegion(region);
    if (oldRegion != null) {
      oldRegion.dispose();
    }
  }
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

void fillRegion(GC gc, Region region) {
  // NOTE: region passed in to this function will be modified
  Region clipping = new Region();
  gc.getClipping(clipping);
  region.intersect(clipping);
  gc.setClipping(region);
  gc.fillRectangle(region.getBounds());
  gc.setClipping(clipping);
  clipping.dispose();
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

void fillRegion(GC gc, Region region) {
  // NOTE: region passed in to this function will be modified
  Region clipping = new Region();
  gc.getClipping(clipping);
  region.intersect(clipping);
  gc.setClipping(region);
  gc.fillRectangle(region.getBounds());
  gc.setClipping(clipping);
  clipping.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

void fillRegion(GC gc, Region region) {
  // NOTE: region passed in to this function will be modified
  Region clipping = new Region();
  gc.getClipping(clipping);
  region.intersect(clipping);
  gc.setClipping(region);
  gc.fillRectangle(region.getBounds());
  gc.setClipping(clipping);
  clipping.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

void fillRegion(GC gc, Region region) {
  // NOTE: region passed in to this function will be modified
  Region clipping = new Region();
  gc.getClipping(clipping);
  region.intersect(clipping);
  gc.setClipping(region);
  gc.fillRectangle(region.getBounds());
  gc.setClipping(clipping);
  clipping.dispose();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

void fillRegion(GC gc, Region region) {
  // NOTE: region passed in to this function will be modified
  Region clipping = new Region();
  gc.getClipping(clipping);
  region.intersect(clipping);
  gc.setClipping(region);
  gc.fillRectangle(region.getBounds());
  gc.setClipping(clipping);
  clipping.dispose();
}

代码示例来源:origin: org.eclipse.e4.ui.workbench.addons/swt

private void defineRegion() {
  Region rgn = new Region();
  for (Rectangle r : rects) {
    rgn.add(r);
    rgn.subtract(r.x + 2, r.y + 2, r.width - 4, r.height - 4);
  }
  if (feedbackShell.getRegion() != null && !feedbackShell.getRegion().isDisposed())
    feedbackShell.getRegion().dispose();
  feedbackShell.setRegion(rgn);
  feedbackShell.redraw();
  display.update();
}

相关文章