|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.alchemist.utils.AlchemistProgressMonitor
public class AlchemistProgressMonitor
| Constructor Summary | |
|---|---|
AlchemistProgressMonitor()
|
|
AlchemistProgressMonitor(long taskLength)
|
|
| Method Summary | |
|---|---|
void |
close()
Close by setting maximal value |
java.lang.String |
getMessage()
Returns a message (or null) about progress |
int |
getProgressPercent()
This method returns the progress percent based on taskLength and taskValue |
long |
getTaskLength()
Returns the length of task |
long |
getTaskValue()
Returns the current value of task |
void |
init(int maxValue)
Initiate ProgressMonitor Reinit must be handled. |
boolean |
isCanceled()
|
boolean |
isDone()
|
void |
reset()
This method sets the progress monitor to a default state by setting value to 0 and done and canceled to false NOTE: length remains unchanged |
void |
set(int value)
Set actual value |
void |
setCanceled(boolean canceled)
|
void |
setDone(boolean done)
|
void |
setMessage(java.lang.String message)
Sets a progres message can be used to display informations about the progress |
void |
setTaskLength(long taskLength)
Sets the length of task |
void |
setTaskValue(long taskValue)
Sets the value of task |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlchemistProgressMonitor()
public AlchemistProgressMonitor(long taskLength)
| Method Detail |
|---|
public long getTaskLength()
public void setTaskLength(long taskLength)
taskLength - is the length of taskpublic long getTaskValue()
public void setTaskValue(long taskValue)
taskValue - is the value of taskpublic boolean isCanceled()
public void setCanceled(boolean canceled)
public boolean isDone()
public void setDone(boolean done)
public void reset()
public int getProgressPercent()
public void setMessage(java.lang.String message)
message - is the messagepublic java.lang.String getMessage()
public void close()
chemaxon.marvin.modelling.util.ProgressMonitor
close in interface chemaxon.marvin.modelling.util.ProgressMonitorpublic void init(int maxValue)
chemaxon.marvin.modelling.util.ProgressMonitor
init in interface chemaxon.marvin.modelling.util.ProgressMonitormaxValue - value for 100%public void set(int value)
chemaxon.marvin.modelling.util.ProgressMonitor
set in interface chemaxon.marvin.modelling.util.ProgressMonitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||