|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jrefinery.data.GanttTask
public class GanttTask
A representation of a task id and assocated list of time allocations.
This class is used as a building block for the GanttSeriesCollection class that implements the IntervalCategoryDataset that, in turn, can be used to construct Gantt charts.
Time allocations for any given task should be non-overlapping. This is not verified in this version...
| Field Summary | |
|---|---|
protected java.lang.String |
defaultPropertyType
|
protected java.lang.Object |
id
Arbitrary identifier for this task |
protected java.util.List |
times
A list of time allocations for the above task |
| Constructor Summary | |
|---|---|
GanttTask(java.lang.Object name)
Constructs a new task with the specified name. |
|
GanttTask(java.lang.Object name,
java.lang.String propertyType)
|
|
| Method Summary | |
|---|---|
GanttTask |
add(TimeAllocation allocation)
Adds a time allocation for the task. |
TaskProperties |
getDefaultProperty()
|
java.lang.String |
getDefaultPropertyType()
|
java.lang.Object |
getId()
Returns the id associated with this task |
int |
getItemCount()
Returns the number of time allocations associated with this task. |
java.util.Iterator |
iterator()
Returns the time allocation iterator for task. |
void |
remove(TimeAllocation allocation)
|
TimeAllocation |
span()
Returns shortest time allocation spanning the task |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object id
protected java.util.List times
protected java.lang.String defaultPropertyType
| Constructor Detail |
|---|
public GanttTask(java.lang.Object name)
name - The series name.
public GanttTask(java.lang.Object name,
java.lang.String propertyType)
| Method Detail |
|---|
public int getItemCount()
public java.lang.Object getId()
public java.util.Iterator iterator()
public GanttTask add(TimeAllocation allocation)
allocation - The time allocation.
public TimeAllocation span()
public void remove(TimeAllocation allocation)
public TaskProperties getDefaultProperty()
public java.lang.String getDefaultPropertyType()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||