Package com.storedobject.chart
Class Project.TaskGroup
java.lang.Object
com.storedobject.chart.AbstractTask
com.storedobject.chart.Project.ProjectTask
com.storedobject.chart.Project.TaskGroup
-
Method Summary
Modifier and TypeMethodDescriptioncreateTask
(String name, int duration) Create and add aProject.Task
to this task group.getColor()
Get the color used when rendering.double
Get percentage completed.final int
Get the duration.final LocalDateTime
getStart()
Get the start.final Project.Task
getTask
(int taskIndex) Get aProject.Task
from this group.final int
Get the number ofProject.Task
belonging to this group.boolean
Check if this task/activity is completed or not.Methods inherited from class com.storedobject.chart.Project.ProjectTask
getEnd, getName, getOrder, renderStart, setOrder
Methods inherited from class com.storedobject.chart.AbstractTask
equals, getExtraFontSize, getExtraInfo, getFontSize, getId, hashCode, isMilestone, setColor, setExtraFontSize, setExtraInfo, setFontSize, setName
-
Method Details
-
createTask
Create and add aProject.Task
to this task group.- Parameters:
name
- Name of the task.duration
- Duration of the task. (A duration of zero denotes a project milestone).- Returns:
- Task created.
-
getColor
Description copied from class:AbstractTask
Get the color used when rendering.- Overrides:
getColor
in classAbstractTask
- Returns:
- Color.
-
getDuration
public final int getDuration()Description copied from class:Project.ProjectTask
Get the duration.- Specified by:
getDuration
in classProject.ProjectTask
- Returns:
- Duration (in
AbstractProject.getDurationType()
).
-
getStart
Description copied from class:Project.ProjectTask
Get the start.- Overrides:
getStart
in classProject.ProjectTask
- Returns:
- Start.
-
getTask
Get aProject.Task
from this group.- Parameters:
taskIndex
- Index of the task to be retrieved.- Returns:
Project.Task
.
-
getTaskCount
public final int getTaskCount()Get the number ofProject.Task
belonging to this group.- Returns:
- Task count.
-
isCompleted
public boolean isCompleted()Description copied from class:AbstractTask
Check if this task/activity is completed or not.- Overrides:
isCompleted
in classAbstractTask
- Returns:
- True/false.
-
getCompleted
public double getCompleted()Description copied from class:AbstractTask
Get percentage completed.- Specified by:
getCompleted
in classAbstractTask
- Returns:
- Percentage completed.
-