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
ConstructorsModifierConstructorDescriptionprotectedProjectActivity(String name, LocalDateTime start, int duration) Constructor.protectedProjectActivity(String name, LocalDateTime start, LocalDateTime end) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcheck()Performs a validation check for the activity or activity group.intGet the duration.final LocalDateTimegetEnd()Get the end.final StringgetName()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:
getNamein classAbstractTask- Returns:
- Current name.
-
getDuration
public int getDuration()Get the duration.- Specified by:
getDurationin classAbstractTask- Returns:
- Duration (in
AbstractProject.getDurationType()).
-
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.
-
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.
-