Class DurationFormat

java.lang.Object
java.text.Format
java.text.DateFormat
com.atlassian.bamboo.charts.utils.DurationFormat
All Implemented Interfaces:
Serializable, Cloneable

public class DurationFormat extends DateFormat
See Also:
  • Constructor Details

    • DurationFormat

      public DurationFormat()
    • DurationFormat

      public DurationFormat(boolean timeInSeconds)
    • DurationFormat

      public DurationFormat(NumberFormat dayFormat, NumberFormat hourFormat, NumberFormat minuteFormat, NumberFormat secondFormat)
  • Method Details

    • format

      public StringBuffer format(Date date, StringBuffer stringBuffer, FieldPosition fieldPosition)
      Specified by:
      format in class DateFormat
    • parse

      public Date parse(String string, ParsePosition parsePosition)
      Specified by:
      parse in class DateFormat
    • setDayFormat

      public void setDayFormat(NumberFormat dayFormat)
    • setHourFormat

      public void setHourFormat(NumberFormat hourFormat)
    • setMinuteFormat

      public void setMinuteFormat(NumberFormat minuteFormat)
    • setSecondFormat

      public void setSecondFormat(NumberFormat secondFormat)
    • setShowZeroDay

      public void setShowZeroDay(boolean showZeroDay)
    • setShowZeroHour

      public void setShowZeroHour(boolean showZeroHour)
    • setShowZeroMinute

      public void setShowZeroMinute(boolean showZeroMinute)
    • setShowZeroSecond

      public void setShowZeroSecond(boolean showZeroSecond)