public class EmptyProgressVisitor extends Object implements ProgressVisitor
PROPERTY_CANCELED| Constructor and Description |
|---|
EmptyProgressVisitor() |
| 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
ProgressVisitor.setStep(int) with step count. |
void |
endStep()
Same as
ProgressVisitor.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.
|
public void endOfProgress()
ProgressVisitorProgressVisitor.setStep(int) with step count.endOfProgress in interface ProgressVisitorpublic ProgressVisitor subProcess(int stepCount)
ProgressVisitorsubProcess in interface ProgressVisitorstepCount - Number of step into the sub-process.ProgressVisitorpublic void endStep()
ProgressVisitorProgressVisitor.setStep(int) with currentStep++endStep in interface ProgressVisitorpublic void setStep(int idStep)
setStep in interface ProgressVisitoridStep - Set the current step, must be in [0-stepCount]public int getStepCount()
getStepCount in interface ProgressVisitorpublic double getProgression()
ProgressVisitorgetProgression in interface ProgressVisitorpublic boolean isCanceled()
ProgressVisitorisCanceled in interface ProgressVisitorpublic void cancel()
ProgressVisitorcancel in interface ProgressVisitorpublic void addPropertyChangeListener(String property, PropertyChangeListener listener)
ProgressVisitoraddPropertyChangeListener in interface ProgressVisitorproperty - Property name one of ProgressVisitor.PROPERTY_CANCELED.listener - PropertyChangeListener instance.public void removePropertyChangeListener(PropertyChangeListener listener)
ProgressVisitorremovePropertyChangeListener in interface ProgressVisitorlistener - PropertyChangeListener instance.Copyright © 2019 CNRS. All rights reserved.