Package com.storedobject.chart
Class ActivityList.ProjectActivity
java.lang.Object
com.storedobject.chart.AbstractTask
com.storedobject.chart.ActivityList.ProjectActivity
- Direct Known Subclasses:
ActivityList.Activity
,ActivityList.ActivityGroup
- Enclosing class:
ActivityList
An abstract base class for the representation of an Activity or Activity Group.
- Author:
- Syam
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProjectActivity
(String name, LocalDateTime start, int duration) Constructor.protected
ProjectActivity
(String name, LocalDateTime start, LocalDateTime end) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
check()
Performs a validation check for the activity or activity group.int
Get the duration.final LocalDateTime
getEnd()
Get the end.final String
getName()
Get the name.Start used by renderers may be different from the normal start.Methods inherited from class com.storedobject.chart.AbstractTask
equals, getColor, getCompleted, getExtraFontSize, getExtraInfo, getFontSize, getId, getStart, hashCode, isCompleted, isMilestone, setColor, setExtraFontSize, setExtraInfo, setFontSize, setName
-
Constructor Details
-
ProjectActivity
Constructor.- Parameters:
name
- Name of the activity/group.
-
ProjectActivity
Constructor.- Parameters:
name
- Name of the activity/group.
-
-
Method Details
-
getName
Get the name.- Overrides:
getName
in classAbstractTask
- Returns:
- Current name.
-
getDuration
public int getDuration()Get the duration.- Specified by:
getDuration
in classAbstractTask
- Returns:
- Duration (in
AbstractProject.getDurationType()
).
-
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.
-
check
Performs a validation check for the activity or activity group. This method needs to be implemented by subclasses to provide the specific validation logic.- Throws:
ChartException
- if any validation error occurs during the check.
-