Package com.storedobject.chart
Class Project.ProjectTask
java.lang.Object
com.storedobject.chart.AbstractTask
com.storedobject.chart.Project.ProjectTask
- Direct Known Subclasses:
Project.Task
,Project.TaskGroup
- Enclosing class:
Project
An abstract base class for the representation of a Task or Task Group.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
Get the duration.final LocalDateTime
getEnd()
Get the end.final String
getName()
Get the name.int
getOrder()
Get the order.getStart()
Get the start.Start used by renderers may be different from the normal start.void
setOrder
(int order) Set the order.Methods inherited from class com.storedobject.chart.AbstractTask
equals, getColor, getCompleted, getExtraFontSize, getExtraInfo, getFontSize, getId, hashCode, isCompleted, isMilestone, setColor, setExtraFontSize, setExtraInfo, setFontSize, setName
-
Constructor Details
-
ProjectTask
-
-
Method Details
-
getName
Get the name.- Overrides:
getName
in classAbstractTask
- Returns:
- Current name.
-
setOrder
public void setOrder(int order) Set the order. Start time and dependencies decide the order of a task/group. This parameter is used to decide on the ordering only when there is a tie. Mostly, it is not required to set this value.- Parameters:
order
- The order to set.
-
getOrder
public int getOrder()Get the order.- Returns:
- Current order.
-
getDuration
public abstract int getDuration()Get the duration.- Specified by:
getDuration
in classAbstractTask
- Returns:
- Duration (in
AbstractProject.getDurationType()
).
-
getStart
Get the start.- Overrides:
getStart
in classAbstractTask
- Returns:
- Start.
-
getEnd
Get the end.- Specified by:
getEnd
in classAbstractTask
- Returns:
- End.
-
renderStart
Start used by renderers may be different from the normal start. (For internal use only).- Overrides:
renderStart
in classAbstractTask
- Returns:
- Start for the renderers.
-