public class

TaskProgressInterval

extends Object
java.lang.Object
   ↳ com.atlassian.jira.imports.project.taskprogress.TaskProgressInterval

Class Overview

Represents an interval of an overall Task Progress bar.

Summary

Public Constructors
TaskProgressInterval(TaskProgressSink taskProgressSink, int startPercent, int endPercent)
Public Methods
int getEndPercent()
Returns the overall percentage done at which this interval ends.
int getStartPercent()
Returns the overall percentage done at which this interval starts.
TaskProgressInterval getSubInterval(int subIntervalStartPercent, int subIntervalEndPercent)
Returns a subinterval of this interval.
TaskProgressSink getTaskProgressSink()
Returns the TaskProgressSink that this interval is to be used for.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TaskProgressInterval (TaskProgressSink taskProgressSink, int startPercent, int endPercent)

Public Methods

public int getEndPercent ()

Returns the overall percentage done at which this interval ends.

Returns
  • the overall percentage done at which this interval ends.

public int getStartPercent ()

Returns the overall percentage done at which this interval starts.

Returns
  • the overall percentage done at which this interval starts.

public TaskProgressInterval getSubInterval (int subIntervalStartPercent, int subIntervalEndPercent)

Returns a subinterval of this interval. You pass in the start and end percent of the subinterval. A TaskProgressInterval is returned which contains the start and end of the overall progress for the subinterval.

eg If the parent interval runs from 20% - 60%, and we ask for a sub interval that runs from 25% - 50% of its parent, then the returned TaskProgressInterval would start at 30% and end at 40%.

Parameters
subIntervalStartPercent The start percent of the sub interval within the parent interval.
subIntervalEndPercent The end percent of the sub interval within the parent interval.
Returns
  • a subinterval of this interval.

public TaskProgressSink getTaskProgressSink ()

Returns the TaskProgressSink that this interval is to be used for.

Returns
  • the TaskProgressSink that this interval is to be used for.