java.lang.Object | |
↳ | org.jfree.data.gantt.Task |
A simple representation of a task. The task has a description and a duration. You can add sub-tasks to the task.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new task.
| |||||||||||
Creates a new task.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a sub-task to the task.
| |||||||||||
Returns a clone of the task.
| |||||||||||
Tests this object for equality with an arbitrary object.
| |||||||||||
Returns the task description.
| |||||||||||
Returns the duration (actual or estimated) of the task.
| |||||||||||
Returns the percentage complete for this task.
| |||||||||||
Returns a sub-task.
| |||||||||||
Returns the sub-task count.
| |||||||||||
Removes a sub-task from the task.
| |||||||||||
Sets the task description.
| |||||||||||
Sets the task duration (actual or estimated).
| |||||||||||
Sets the percentage complete for the task.
| |||||||||||
Sets the percentage complete for the task.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new task.
description | the task description (null not
permitted). |
---|---|
duration | the task duration (null permitted).
|
Creates a new task.
description | the task description (null not
permitted). |
---|---|
start | the start date (null not permitted). |
end | the end date (null not permitted).
|
Adds a sub-task to the task.
subtask | the subtask (null not permitted).
|
---|
Returns a clone of the task.
CloneNotSupportedException | never thrown by this class, but subclasses may not support cloning. |
---|
Tests this object for equality with an arbitrary object.
object | the other object (null permitted). |
---|
Returns the task description.
null
).
Returns the duration (actual or estimated) of the task.
null
).
Returns the percentage complete for this task.
null
).
Returns a sub-task.
index | the index. |
---|
Returns the sub-task count.
Removes a sub-task from the task.
subtask | the subtask. |
---|
Sets the task description.
description | the description (null not permitted).
|
---|
Sets the task duration (actual or estimated).
duration | the duration (null permitted).
|
---|
Sets the percentage complete for the task.
percent | the percentage (null permitted).
|
---|
Sets the percentage complete for the task.
percent | the percentage. |
---|