import java.util.Map;
import java.util.Vector;
-import javax.swing.SwingUtilities;
-
import org.jmol.adapter.smarter.SmarterJmolAdapter;
import org.jmol.api.JmolAppConsoleInterface;
import org.jmol.api.JmolSelectionListener;
lastCommand = command;
}
+ Thread colourby = null;
/**
* Sends a set of colour commands to the structure viewer
*
protected void colourBySequence(
final StructureMappingcommandSet[] colourBySequenceCommands)
{
- SwingUtilities.invokeLater(new Runnable()
+ if (colourby != null)
+ {
+ colourby.interrupt();
+ colourby = null;
+ }
+ colourby = new Thread(new Runnable()
{
@Override
public void run()
}
}
});
+ colourby.start();
}
/**