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.Taskto this task group.getColor()Get the color used when rendering.doubleGet percentage completed.final intGet the duration.final LocalDateTimegetStart()Get the start.final Project.TaskgetTask(int taskIndex) Get aProject.Taskfrom this group.final intGet the number ofProject.Taskbelonging to this group.booleanCheck if this task/activity is completed or not.Methods inherited from class com.storedobject.chart.Project.ProjectTask
getEnd, getName, getOrder, renderStart, setOrderMethods 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.Taskto 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:AbstractTaskGet the color used when rendering.- Overrides:
getColorin classAbstractTask- Returns:
- Color.
-
getDuration
public final int getDuration()Description copied from class:Project.ProjectTaskGet the duration.- Specified by:
getDurationin classProject.ProjectTask- Returns:
- Duration (in
AbstractProject.getDurationType()).
-
getStart
Description copied from class:Project.ProjectTaskGet the start.- Overrides:
getStartin classProject.ProjectTask- Returns:
- Start.
-
getTask
Get aProject.Taskfrom this group.- Parameters:
taskIndex- Index of the task to be retrieved.- Returns:
Project.Task.
-
getTaskCount
public final int getTaskCount()Get the number ofProject.Taskbelonging to this group.- Returns:
- Task count.
-
isCompleted
public boolean isCompleted()Description copied from class:AbstractTaskCheck if this task/activity is completed or not.- Overrides:
isCompletedin classAbstractTask- Returns:
- True/false.
-
getCompleted
public double getCompleted()Description copied from class:AbstractTaskGet percentage completed.- Specified by:
getCompletedin classAbstractTask- Returns:
- Percentage completed.
-