public synchronized void setCancelled(boolean set) {
public void setCancelled(boolean set) {
    public synchronized void setCancelled(boolean set) {        if (set) {            interrupt();// if the layerWorker is busy, stop it.        }        cancelled = set;    }