Class DefaultProgressVisitor

  • All Implemented Interfaces:
    org.h2gis.api.ProgressVisitor
    Direct Known Subclasses:
    RootProgressVisitor

    public class DefaultProgressVisitor
    extends Object
    implements org.h2gis.api.ProgressVisitor
    • Field Detail

      • subprocessSize

        protected long subprocessSize
      • subprocessDone

        protected double subprocessDone
    • Constructor Detail

      • DefaultProgressVisitor

        public DefaultProgressVisitor​(long subprocessSize,
                                      DefaultProgressVisitor parentProcess)
    • Method Detail

      • subProcess

        public org.h2gis.api.ProgressVisitor subProcess​(int i)
        Specified by:
        subProcess in interface org.h2gis.api.ProgressVisitor
        Returns:
        an instance of the interface ProgressVisitor
      • endStep

        public void endStep()
        Specified by:
        endStep in interface org.h2gis.api.ProgressVisitor
      • pushProgression

        protected void pushProgression​(double incProg)
      • setStep

        public void setStep​(int i)
        Specified by:
        setStep in interface org.h2gis.api.ProgressVisitor
      • getStepCount

        public int getStepCount()
        Specified by:
        getStepCount in interface org.h2gis.api.ProgressVisitor
      • endOfProgress

        public void endOfProgress()
        Specified by:
        endOfProgress in interface org.h2gis.api.ProgressVisitor
      • getProgression

        public double getProgression()
        Specified by:
        getProgression in interface org.h2gis.api.ProgressVisitor
      • isCanceled

        public boolean isCanceled()
        check if the process is cancel or not
        Specified by:
        isCanceled in interface org.h2gis.api.ProgressVisitor
        Returns:
        a boolean
      • cancel

        public void cancel()
        allow to cancel a process
        Specified by:
        cancel in interface org.h2gis.api.ProgressVisitor
      • addPropertyChangeListener

        public void addPropertyChangeListener​(String s,
                                              PropertyChangeListener propertyChangeListener)
        Specified by:
        addPropertyChangeListener in interface org.h2gis.api.ProgressVisitor
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener propertyChangeListener)
        Specified by:
        removePropertyChangeListener in interface org.h2gis.api.ProgressVisitor