public interface MoleculeArchiveWindow
This provides direct access to the MoleculeArchive window that is currently
displaying the archive contents using the getWindow
method. Using this interface the window can be updated, locked,
unlocked, closed, Log Messages can be printed to the lock mode background and
the Progress of a running job can be provided.
Modifier and Type | Method and Description |
---|---|
void |
lock()
Lock the MoleculeArchive window to prevent changes from being made at the
same time as calculations are running on the archive.
|
void |
lock(java.lang.String message)
Lock the MoleculeArchive window to prevent changes from being made at the
same time as calculations are running on the archive.
|
void |
log(java.lang.String message)
Add a message to the log that is presented in the background of the lock
screen.
|
void |
logln(java.lang.String message)
Add a message and start a new line in the log that is presented in the
background of the lock screen.
|
void |
setProgress(double progress)
This is used to report the progress for a long-running task working on the
archive when it is locked.
|
void |
unlock()
Unlock the MoleculeArchive window once processing is complete.
|
void |
updateLockMessage(java.lang.String message)
Update the message presented on the lock screen.
|
void setProgress(double progress)
progress
- Fraction of job that is complete.void updateLockMessage(java.lang.String message)
message
- Message presented on the lock screen.void log(java.lang.String message)
addLogMessage(String message)
are printed to the lock screen background using this method.message
- String message to add to the lock screen log background.void logln(java.lang.String message)
addLogMessage(String message)
are printed to the lock screen background using this method.message
- String message to add to the lock screen log background.void lock(java.lang.String message)
message
- Message to present in the lock screen.void lock()
void unlock()