public interface ProgressVisitor
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_CANCELED |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(String property,
PropertyChangeListener listener)
Add the specified PropertyChangeListener for this visitor specified property.
|
void |
cancel()
Call this method to cancel the operation.
|
void |
endOfProgress()
Same thing as call
setStep(int) with step count. |
void |
endStep()
Same as
setStep(int) with currentStep++ |
double |
getProgression()
Get the step progression which belong to [0,1]
|
int |
getStepCount() |
boolean |
isCanceled()
Return true if the process hes been canceled, false otherwise.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove the specified PropertyChangeListener.
|
void |
setStep(int idStep) |
ProgressVisitor |
subProcess(int stepCount)
Create a sub process.
|
static final String PROPERTY_CANCELED
ProgressVisitor subProcess(int stepCount)
stepCount - Number of step into the sub-process.ProgressVisitorvoid endStep()
setStep(int) with currentStep++void setStep(int idStep)
idStep - Set the current step, must be in [0-stepCount]int getStepCount()
void endOfProgress()
setStep(int) with step count.double getProgression()
boolean isCanceled()
void cancel()
void addPropertyChangeListener(String property, PropertyChangeListener listener)
property - Property name one of PROPERTY_CANCELED.listener - PropertyChangeListener instance.void removePropertyChangeListener(PropertyChangeListener listener)
listener - PropertyChangeListener instance.Copyright © 2019 CNRS. All rights reserved.