300301302303304305306307308309310
public void runSupport() { if (canvas == null || canvas.isDisposed()) { return; } canvas.redraw(); canvas.update(); if (curSpinIndex == spinImages.length - 1) { curSpinIndex = 0; } else { curSpinIndex++;
177178179180181182183184185186187
public void runSupport() { if (panel == null || panel.isDisposed()) return; Color color = ColorCache.getColor(panel.getDisplay(), r, g, b); blockColors[index] = color; cColor.redraw(); } }); } } else { if (blockColors[j].isDisposed()
189190191192193194195196197198199
Utils.execSWTThread(new AERunnable() { public void runSupport() { if (panel == null || panel.isDisposed()) return; blockColors[index] = defaultColors[index]; cColor.redraw(); } }); } } }
3233343536373839404142
shell.open(); display.timerExec(ms , new Runnable() { @Override public void run() { if (shell.isDisposed()) return; canvas.redraw(); display.timerExec(ms, this); } }); while (!shell.isDisposed()) { if (!display.readAndDispatch())
3435363738394041424344
106107108109110111112113114115116
return; if (busy) { index++; if (index == images.length) index = 0; canvas.redraw(); } display.timerExec(150, this); } }); final Label status = new Label(parent, SWT.NONE);
186187188189190191192193194195196
int ratio = event.current * 100 / event.total; progressBar.setSelection(ratio); busy = event.current != event.total; if (!busy) { index = 0; canvas.redraw(); } } public void completed(ProgressEvent event) { itemBack.setEnabled(browser.isBackEnabled()); itemForward.setEnabled(browser.isForwardEnabled());
195196197198199200201202203204205
itemBack.setEnabled(browser.isBackEnabled()); itemForward.setEnabled(browser.isForwardEnabled()); progressBar.setSelection(0); busy = false; index = 0; canvas.redraw(); } }); browser.addStatusTextListener(new StatusTextListener() { public void changed(StatusTextEvent event) { status.setText(event.text);
131132133134135136137138139140141
event.gc.drawLine( 20, 20, 120, 120 ); event.gc.drawRectangle( 20, 20, 100, 100 ); event.gc.drawOval( 20, 20, 100, 100 ); } } ); canvas.redraw(); shell.open(); } private void createCombo() { final Shell shell = new Shell( display, SWT.NO_TRIM );
5657585960616263646566
if (heading.getSelection() == -1) { heading.setSelection(359); } canvas.redraw(); } }); canvas.addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) {