Package com.storedobject.chart
Class Project.Task
java.lang.Object
com.storedobject.chart.AbstractTask
com.storedobject.chart.Project.ProjectTask
com.storedobject.chart.Project.Task
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Get the color used when rendering.final double
Get percentage completed.final int
Get the duration.final Project.TaskGroup
getGroup()
Get theProject.TaskGroup
this task belongs to.getStart()
Get the start.boolean
Check if this task/activity is completed or not.final boolean
Is this a milestone task?void
setCompleted
(double completed) Set completion percentage.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, setColor, setExtraFontSize, setExtraInfo, setFontSize, setName
-
Method Details
-
setCompleted
public void setCompleted(double completed) Set completion percentage.- Parameters:
completed
- Percentage completed.
-
getCompleted
public final double getCompleted()Description copied from class:AbstractTask
Get percentage completed.- Specified by:
getCompleted
in classAbstractTask
- Returns:
- Percentage completed.
-
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()
).
-
isMilestone
public final boolean isMilestone()Description copied from class:AbstractTask
Is this a milestone task? (Not applicable to activities).- Overrides:
isMilestone
in classAbstractTask
- Returns:
- True if duration is zero.
-
getStart
Description copied from class:Project.ProjectTask
Get the start.- Overrides:
getStart
in classProject.ProjectTask
- Returns:
- Start.
-
getGroup
Get theProject.TaskGroup
this task belongs to.- Returns:
Project.TaskGroup
.
-
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.
-
getColor
Description copied from class:AbstractTask
Get the color used when rendering.- Overrides:
getColor
in classAbstractTask
- Returns:
- Color.
-