public class DefaultProgressMonitor extends Object implements net.thevpc.nuts.time.NProgressMonitor
| Modifier and Type | Field and Description |
|---|---|
static net.thevpc.nuts.util.NMsg |
EMPTY_MESSAGE |
| Constructor and Description |
|---|
DefaultProgressMonitor(String id,
net.thevpc.nuts.time.NProgressHandler spi,
NProgressMonitorInc incrementor) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.time.NProgressMonitor |
addListener(net.thevpc.nuts.time.NProgressListener listener) |
net.thevpc.nuts.time.NProgressMonitor |
block() |
net.thevpc.nuts.time.NProgressMonitor |
block(net.thevpc.nuts.util.NMsg message) |
<T> T |
callWith(net.thevpc.nuts.util.NCallable<T> runnable) |
net.thevpc.nuts.time.NProgressMonitor |
cancel() |
net.thevpc.nuts.time.NProgressMonitor |
cancel(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
complete() |
net.thevpc.nuts.time.NProgressMonitor |
complete(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.util.NMsg |
getDescription() |
net.thevpc.nuts.time.NDuration |
getDuration() |
net.thevpc.nuts.time.NDuration |
getEstimatedRemainingDuration() |
net.thevpc.nuts.time.NDuration |
getEstimatedTotalDuration() |
String |
getId() |
NProgressMonitorInc |
getIncrementor() |
net.thevpc.nuts.time.NProgressListener[] |
getListeners() |
net.thevpc.nuts.util.NMsg |
getMessage() |
String |
getName() |
double |
getProgress() |
net.thevpc.nuts.time.NProgressHandler |
getSpi() |
net.thevpc.nuts.time.NClock |
getStartClock() |
net.thevpc.nuts.time.NProgressMonitor |
inc() |
net.thevpc.nuts.time.NProgressMonitor |
inc(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
incremental(double delta) |
net.thevpc.nuts.time.NProgressMonitor |
incremental(long iterations) |
boolean |
isBlocked() |
boolean |
isCanceled() |
boolean |
isCompleted() |
boolean |
isIndeterminate() |
boolean |
isSilent() |
boolean |
isStarted() |
boolean |
isSuspended() |
net.thevpc.nuts.time.NProgressMonitor |
removeListener(net.thevpc.nuts.time.NProgressListener listener) |
void |
reset() |
void |
runWith(Runnable runnable) |
void |
runWithAll(Runnable... runnables) |
void |
runWithAll(Runnable[] runnables,
double[] weights) |
net.thevpc.nuts.time.NProgressMonitor |
setBlocked(boolean block,
net.thevpc.nuts.util.NMsg message) |
protected net.thevpc.nuts.time.NProgressMonitor |
setCancelled(boolean cancel,
net.thevpc.nuts.util.NMsg message) |
protected net.thevpc.nuts.time.NProgressMonitor |
setDescription(net.thevpc.nuts.util.NMsg desc) |
DefaultProgressMonitor |
setIncrementor(NProgressMonitorInc incrementor) |
net.thevpc.nuts.time.NProgressMonitor |
setIndeterminate() |
net.thevpc.nuts.time.NProgressMonitor |
setIndeterminate(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
setMessage(net.thevpc.nuts.util.NMsg message) |
protected void |
setName(String name) |
net.thevpc.nuts.time.NProgressMonitor |
setProgress(double progress) |
net.thevpc.nuts.time.NProgressMonitor |
setProgress(double progress,
net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
setProgress(long i,
long max) |
net.thevpc.nuts.time.NProgressMonitor |
setProgress(long i,
long maxi,
long j,
long maxj) |
net.thevpc.nuts.time.NProgressMonitor |
setProgress(long i,
long j,
long maxi,
long maxj,
net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
setProgress(long i,
long max,
net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
setSuspended(boolean suspend,
net.thevpc.nuts.util.NMsg message) |
protected net.thevpc.nuts.time.NProgressMonitor |
setTerminated(boolean terminated,
net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor[] |
split(double... weight) |
net.thevpc.nuts.time.NProgressMonitor[] |
split(int nbrElements)
creates Monitors for each enabled Element or null if false
|
net.thevpc.nuts.time.NProgressMonitor |
start() |
net.thevpc.nuts.time.NProgressMonitor |
start(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
stepInto(long index,
long max) |
net.thevpc.nuts.time.NProgressMonitor |
stepInto(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
suspend() |
net.thevpc.nuts.time.NProgressMonitor |
suspend(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
temporize(long freq) |
net.thevpc.nuts.time.NProgressMonitor |
translate(double factor,
double start) |
net.thevpc.nuts.time.NProgressMonitor |
translate(long index,
long max) |
net.thevpc.nuts.time.NProgressMonitor |
translate(long i,
long imax,
long j,
long jmax) |
net.thevpc.nuts.time.NProgressMonitor |
undoBlock() |
net.thevpc.nuts.time.NProgressMonitor |
undoBlock(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
undoCancel() |
net.thevpc.nuts.time.NProgressMonitor |
undoCancel(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
undoComplete() |
net.thevpc.nuts.time.NProgressMonitor |
undoComplete(net.thevpc.nuts.util.NMsg message) |
net.thevpc.nuts.time.NProgressMonitor |
undoSuspend() |
net.thevpc.nuts.time.NProgressMonitor |
undoSuspend(net.thevpc.nuts.util.NMsg message) |
public DefaultProgressMonitor(String id, net.thevpc.nuts.time.NProgressHandler spi, NProgressMonitorInc incrementor)
public void runWithAll(Runnable... runnables)
runWithAll in interface net.thevpc.nuts.time.NProgressMonitorpublic void runWithAll(Runnable[] runnables, double[] weights)
runWithAll in interface net.thevpc.nuts.time.NProgressMonitorpublic void runWith(Runnable runnable)
runWith in interface net.thevpc.nuts.time.NProgressMonitorpublic <T> T callWith(net.thevpc.nuts.util.NCallable<T> runnable)
callWith in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor setProgress(double progress,
net.thevpc.nuts.util.NMsg message)
setProgress in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor start(net.thevpc.nuts.util.NMsg message)
start in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor start()
start in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor complete()
complete in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor complete(net.thevpc.nuts.util.NMsg message)
complete in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor undoComplete()
undoComplete in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor undoComplete(net.thevpc.nuts.util.NMsg message)
undoComplete in interface net.thevpc.nuts.time.NProgressMonitorprotected net.thevpc.nuts.time.NProgressMonitor setTerminated(boolean terminated,
net.thevpc.nuts.util.NMsg message)
public net.thevpc.nuts.time.NProgressMonitor cancel()
cancel in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor cancel(net.thevpc.nuts.util.NMsg message)
cancel in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor undoCancel()
undoCancel in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor undoCancel(net.thevpc.nuts.util.NMsg message)
undoCancel in interface net.thevpc.nuts.time.NProgressMonitorprotected net.thevpc.nuts.time.NProgressMonitor setCancelled(boolean cancel,
net.thevpc.nuts.util.NMsg message)
public net.thevpc.nuts.time.NProgressMonitor undoSuspend()
undoSuspend in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor undoSuspend(net.thevpc.nuts.util.NMsg message)
undoSuspend in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor suspend()
suspend in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor suspend(net.thevpc.nuts.util.NMsg message)
suspend in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor setSuspended(boolean suspend,
net.thevpc.nuts.util.NMsg message)
public boolean isSuspended()
isSuspended in interface net.thevpc.nuts.time.NProgressMonitorpublic boolean isCompleted()
isCompleted in interface net.thevpc.nuts.time.NProgressMonitorpublic boolean isBlocked()
isBlocked in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor block()
block in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor block(net.thevpc.nuts.util.NMsg message)
block in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor undoBlock()
undoBlock in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor undoBlock(net.thevpc.nuts.util.NMsg message)
undoBlock in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor setBlocked(boolean block,
net.thevpc.nuts.util.NMsg message)
public boolean isStarted()
isStarted in interface net.thevpc.nuts.time.NProgressMonitorpublic boolean isCanceled()
isCanceled in interface net.thevpc.nuts.time.NProgressMonitorpublic void reset()
reset in interface net.thevpc.nuts.time.NProgressMonitorpublic String getId()
getId in interface net.thevpc.nuts.time.NProgressMonitorpublic String getName()
getName in interface net.thevpc.nuts.time.NProgressMonitorprotected void setName(String name)
public net.thevpc.nuts.util.NMsg getDescription()
getDescription in interface net.thevpc.nuts.time.NProgressMonitorprotected net.thevpc.nuts.time.NProgressMonitor setDescription(net.thevpc.nuts.util.NMsg desc)
public net.thevpc.nuts.time.NProgressMonitor addListener(net.thevpc.nuts.time.NProgressListener listener)
addListener in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor removeListener(net.thevpc.nuts.time.NProgressListener listener)
removeListener in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressListener[] getListeners()
getListeners in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NDuration getDuration()
getDuration in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NClock getStartClock()
getStartClock in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor setMessage(net.thevpc.nuts.util.NMsg message)
setMessage in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.util.NMsg getMessage()
getMessage in interface net.thevpc.nuts.time.NProgressMonitorpublic boolean isIndeterminate()
isIndeterminate in interface net.thevpc.nuts.time.NProgressMonitorpublic double getProgress()
getProgress in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor setProgress(double progress)
setProgress in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor setProgress(long i,
long max)
setProgress in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor setProgress(long i,
long max,
net.thevpc.nuts.util.NMsg message)
setProgress in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor setProgress(long i,
long maxi,
long j,
long maxj)
setProgress in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor setProgress(long i,
long j,
long maxi,
long maxj,
net.thevpc.nuts.util.NMsg message)
setProgress in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor inc()
inc in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NProgressMonitor inc(net.thevpc.nuts.util.NMsg message)
inc in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NDuration getEstimatedTotalDuration()
getEstimatedTotalDuration in interface net.thevpc.nuts.time.NProgressMonitorpublic final net.thevpc.nuts.time.NDuration getEstimatedRemainingDuration()
getEstimatedRemainingDuration in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor setIndeterminate()
setIndeterminate in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor setIndeterminate(net.thevpc.nuts.util.NMsg message)
setIndeterminate in interface net.thevpc.nuts.time.NProgressMonitorpublic DefaultProgressMonitor setIncrementor(NProgressMonitorInc incrementor)
public NProgressMonitorInc getIncrementor()
public net.thevpc.nuts.time.NProgressHandler getSpi()
public net.thevpc.nuts.time.NProgressMonitor translate(long index,
long max)
translate in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor translate(long i,
long imax,
long j,
long jmax)
translate in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor stepInto(net.thevpc.nuts.util.NMsg message)
stepInto in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor stepInto(long index,
long max)
stepInto in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor temporize(long freq)
temporize in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor incremental(long iterations)
incremental in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor incremental(double delta)
incremental in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor translate(double factor,
double start)
translate in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor[] split(int nbrElements)
split in interface net.thevpc.nuts.time.NProgressMonitorpublic net.thevpc.nuts.time.NProgressMonitor[] split(double... weight)
split in interface net.thevpc.nuts.time.NProgressMonitorpublic boolean isSilent()
isSilent in interface net.thevpc.nuts.time.NProgressMonitorCopyright © 2025 vpc open source initiative. All rights reserved.