Blame view
src/mior/view/LiveWorker.java
478 Bytes
89f70c1ec import current mc... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
package mior.view; import javax.swing.SwingWorker; import mior.model.OCLMiorModel; public class LiveWorker extends SwingWorker<Object, Object> { private OCLMiorModel model; private MiorCanvas canvas; public LiveWorker(OCLMiorModel model) { // TODO Auto-generated constructor stub } @Override protected Object doInBackground() throws Exception { model.doLive(); return null; } @Override protected void done() { canvas.repaint(); super.done(); } } |