Class TimeIntervalColumnHeader

  • All Implemented Interfaces:
    ColumnHeader<AgeQueryItem>
    Direct Known Subclasses:
    TimeIntervalColumnHeader.Date, TimeIntervalColumnHeader.Range

    public class TimeIntervalColumnHeader
    extends Object
    implements ColumnHeader<AgeQueryItem>
    A TimeIntervalColumnHeader has a lower and an upper age limit which subdivide the count of tasks into different sections. Days in past are represented as negative values and days in the future are represented as positive values. To avoid tasks are counted multiple times or not be listed in the report, these TimeIntervalColumnHeaders should not overlap and should not have gaps. If the TimeIntervalColumnHeader should represent a single day, lowerAgeLimit and upperAgeLimit have to be equal. The outer cluster of a report should have open ends. These open ends are represented with Integer.MIN_VALUE and Integer.MAX_VALUE.
    • Constructor Detail

      • TimeIntervalColumnHeader

        public TimeIntervalColumnHeader​(int ageInDays)
      • TimeIntervalColumnHeader

        public TimeIntervalColumnHeader​(int lowerAgeLimit,
                                        int upperAgeLimit)
    • Method Detail

      • getLowerAgeLimit

        public int getLowerAgeLimit()
      • getUpperAgeLimit

        public int getUpperAgeLimit()
      • getDisplayName

        public String getDisplayName()
        Description copied from interface: ColumnHeader
        The display name is the string representation of this column. Used to give this column a name during presentation.
        Specified by:
        getDisplayName in interface ColumnHeader<AgeQueryItem>
        Returns:
        String representation of this column.
      • fits

        public boolean fits​(AgeQueryItem item)
        Description copied from interface: ColumnHeader
        Determines if a specific item is meant part of this column.
        Specified by:
        fits in interface ColumnHeader<AgeQueryItem>
        Parameters:
        item - the given item to check.
        Returns:
        True, if the item is supposed to be part of this column. Otherwise false.