Class ConsoleProgressBarAnimation

    • Constructor Detail

      • ConsoleProgressBarAnimation

        public ConsoleProgressBarAnimation​(long fullLength,
                                           int startValue,
                                           char progressChar,
                                           char lastProgressChar,
                                           char emptyChar,
                                           java.lang.String prefix,
                                           java.lang.String suffix)
        Parameters:
        fullLength - the maximum of the animation
        startValue - the initial value for this animation
        progressChar - the Character for each percent in the animation
        lastProgressChar - the Character which is at the last position of the animation
        prefix - the prefix for this animation
        suffix - the suffix for this animation
    • Method Detail

      • getLength

        public long getLength()
      • setLength

        public void setLength​(int length)
      • getCurrentValue

        public long getCurrentValue()
      • setCurrentValue

        public void setCurrentValue​(long currentValue)
      • finish

        public void finish()
      • formatCurrentValue

        protected java.lang.String formatCurrentValue​(long currentValue)
      • formatLength

        protected java.lang.String formatLength​(long length)
      • formatValue

        protected java.lang.String formatValue​(long value)
      • formatTime

        protected java.lang.String formatTime​(long millis)
      • format

        protected java.lang.String format​(java.lang.String input,
                                          double percent)