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 intGet the duration.final LocalDateTimegetEnd()Get the end.final StringgetName()Get the name.intgetOrder()Get the order.getStart()Get the start.Start used by renderers may be different from the normal start.voidsetOrder(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:
getNamein 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:
getDurationin classAbstractTask- Returns:
- Duration (in
AbstractProject.getDurationType()).
-
getStart
Get the start.- Overrides:
getStartin classAbstractTask- Returns:
- Start.
-
getEnd
Get the end.- Specified by:
getEndin classAbstractTask- Returns:
- End.
-
renderStart
Start used by renderers may be different from the normal start. (For internal use only).- Overrides:
renderStartin classAbstractTask- Returns:
- Start for the renderers.
-