本文整理了Java中org.eclipse.swt.graphics.Region.dispose
方法的一些代码示例,展示了Region.dispose
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Region.dispose
方法的具体详情如下:
包路径:org.eclipse.swt.graphics.Region
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!