|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.data.gantt.Task
public class Task
A simple representation of a task. The task has a description and a duration. You can add sub-tasks to the task.
Constructor Summary | |
---|---|
Task(java.lang.String description,
java.util.Date start,
java.util.Date end)
Creates a new task. |
|
Task(java.lang.String description,
TimePeriod duration)
Creates a new task. |
Method Summary | |
---|---|
void |
addSubtask(Task subtask)
Adds a sub-task to the task. |
java.lang.Object |
clone()
Returns a clone of the task. |
boolean |
equals(java.lang.Object object)
Tests this object for equality with an arbitrary object. |
java.lang.String |
getDescription()
Returns the task description. |
TimePeriod |
getDuration()
Returns the duration (actual or estimated) of the task. |
java.lang.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(java.lang.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(java.lang.Double percent)
Sets the percentage complete for the task. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Task(java.lang.String description, TimePeriod duration)
description
- the task description (null
not
permitted).duration
- the task duration (null
permitted).public Task(java.lang.String description, java.util.Date start, java.util.Date end)
description
- the task description (null
not
permitted).start
- the start date (null
not permitted).end
- the end date (null
not permitted).Method Detail |
---|
public java.lang.String getDescription()
null
).public void setDescription(java.lang.String description)
description
- the description (null
not permitted).public TimePeriod getDuration()
null
).public void setDuration(TimePeriod duration)
duration
- the duration (null
permitted).public java.lang.Double getPercentComplete()
null
).public void setPercentComplete(java.lang.Double percent)
percent
- the percentage (null
permitted).public void setPercentComplete(double percent)
percent
- the percentage.public void addSubtask(Task subtask)
subtask
- the subtask (null
not permitted).public void removeSubtask(Task subtask)
subtask
- the subtask.public int getSubtaskCount()
public Task getSubtask(int index)
index
- the index.
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the other object (null
permitted).
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- never thrown by this class, but
subclasses may not support cloning.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |