LiveWorker.java 478 Bytes
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();
	}

}