Class GanttMultyMonthHeaderHelper
java.lang.Object
overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.helper.GanttMultyMonthHeaderHelper
- All Implemented Interfaces:
Serializable,GanttHeaderRendererHelper
- Direct Known Subclasses:
GanttQuarterHeaderHelper,GanttThirdsHeaderHelper
public abstract class GanttMultyMonthHeaderHelper
extends Object
implements GanttHeaderRendererHelper
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoublecalculateBrickWidth(GanttViewConfiguration config, Date date, Date rangeBegin, Date rangeEnd) doubleformatDate(GanttViewConfiguration config, Teacher teacher, Date date, double width) Date[]getBoundingDates(Date date, GanttViewConfiguration config) protected GanttMultyMonthHeaderHelper.MonthGroupprotected Date[]getGroupRange(Date date) getRoundedEnd(GanttViewConfiguration config) protected abstract List<GanttMultyMonthHeaderHelper.MonthGroup> protected List<GanttMultyMonthHeaderHelper.MonthGroup> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocallapp.utilities.ux.ui.container.gantt.view.renderer.helper.GanttHeaderRendererHelper
getDescription
-
Field Details
-
monthGroups
-
-
Constructor Details
-
GanttMultyMonthHeaderHelper
public GanttMultyMonthHeaderHelper()
-
-
Method Details
-
initGroups
-
calculateBrickNumber
- Specified by:
calculateBrickNumberin interfaceGanttHeaderRendererHelper- Parameters:
config- theGanttViewConfigurationwith the current user preference for the visualization- Returns:
- the number of brick to render according to the configuration and the specific time unit implemented
-
formatDate
- Specified by:
formatDatein interfaceGanttHeaderRendererHelper- Parameters:
config- theGanttViewConfigurationwith the current user preference for the visualizationteacher- tTeacherto do translations if neededdate- theDateto formatwidth-- Returns:
- a String that represents the given
Datefor the specific time unit implementation
-
nextDate
- Specified by:
nextDatein interfaceGanttHeaderRendererHelper- Parameters:
date- the currentDate- Returns:
- the next
Dateto render according to the specific time unit implementation
-
getRoundedBegin
- Specified by:
getRoundedBeginin interfaceGanttHeaderRendererHelper- Parameters:
config- theGanttViewConfigurationwith the current user preference for the visualization- Returns:
- the begin date of the visible range rounded according to the specific time unit implementation
-
getRoundedEnd
- Specified by:
getRoundedEndin interfaceGanttHeaderRendererHelper- Parameters:
config- theGanttViewConfigurationwith the current user preference for the visualization- Returns:
- the end date of the visible range rounded according to the specific time unit implementation
-
getBoundingDates
- Specified by:
getBoundingDatesin interfaceGanttHeaderRendererHelper- Parameters:
date- the target dateconfig- the gantt view configuration- Returns:
- the bounding dates that holds the target date, according to the specific time unit implementation. For example, if the target date is 01/01/2012 05:09 with brick type hour, and the implementation is for the day, the bounding dates will be [01/01/2012 00:00, 01/01/2012 23:59]
-
calculateRowWidth
- Specified by:
calculateRowWidthin interfaceGanttHeaderRendererHelper- Parameters:
config- theGanttViewConfigurationwith the current user preference for the visualization- Returns:
- the with in px to use for a gantt row
-
calculateBrickWidth
public double calculateBrickWidth(GanttViewConfiguration config, Date date, Date rangeBegin, Date rangeEnd) - Specified by:
calculateBrickWidthin interfaceGanttHeaderRendererHelper- Parameters:
config- theGanttViewConfigurationwith the current user preference for the visualizationdate- the date that the brick representsrangeBegin- the visible begin daterangeEnd- the visible end date- Returns:
- the width in px to use for this brick
-
monthsGroups
-
getGroup
-
getGroupRange
-