org.jfree.data.gantt
public class Task extends Object implements Cloneable, PublicCloneable, Serializable
Constructor Summary | |
---|---|
Task(String description, TimePeriod duration)
Creates a new task.
| |
Task(String description, Date start, Date end)
Creates a new task.
|
Method Summary | |
---|---|
void | addSubtask(Task subtask)
Adds a sub-task to the task.
|
Object | clone()
Returns a clone of the task.
|
boolean | equals(Object object)
Tests this object for equality with an arbitrary object.
|
String | getDescription()
Returns the task description.
|
TimePeriod | getDuration()
Returns the duration (actual or estimated) of the task.
|
Double | getPercentComplete()
Returns the percentage complete for this task.
|
Task | getSubtask(int index)
Returns a sub-task.
|
int | getSubtaskCount()
Returns the sub-task count.
|
void | removeSubtask(Task subtask)
Removes a sub-task from the task.
|
void | setDescription(String description)
Sets the task description.
|
void | setDuration(TimePeriod duration)
Sets the task duration (actual or estimated).
|
void | setPercentComplete(Double percent)
Sets the percentage complete for the task.
|
void | setPercentComplete(double percent)
Sets the percentage complete for the task.
|
Parameters: description the task description (null
not
permitted). duration the task duration (null
permitted).
Parameters: description the task description (null
not
permitted). start the start date (null
not permitted). end the end date (null
not permitted).
Parameters: subtask the subtask (null
not permitted).
Returns: A clone.
Throws: CloneNotSupportedException never thrown by this class, but subclasses may not support cloning.
Parameters: object the other object (null
permitted).
Returns: A boolean.
Returns: The task description (never null
).
Returns: The task duration (possibly null
).
Returns: The percentage complete (possibly null
).
Parameters: index the index.
Returns: The sub-task.
Returns: The sub-task count.
Parameters: subtask the subtask.
Parameters: description the description (null
not permitted).
Parameters: duration the duration (null
permitted).
Parameters: percent the percentage (null
permitted).
Parameters: percent the percentage.