Package com.projity.pm.time

Examples of com.projity.pm.time.Interval


//      startOffset -= splitDuration;
//      endOffset -= splitDuration;
//    }


    Interval range = getRangeThatIntervalCanBeMoved(start,startOffset,endOffset);
    if (extendDuration > 0)
      extendDuration = Math.min(extendDuration,range.getEnd() - endOffset); // don't allow to shift more than possible
    else
      extendDuration = Math.max(extendDuration,startOffset - endOffset);
    newDetail().extend(endOffset,extendDuration);
  }
View Full Code Here


    WorkCalendar cal = getEffectiveWorkCalendar();

    boolean firstBar = (cal.compare(getStart(),start,false) == 0);
    long startOffset = cal.compare(start,getStart(),false);
    long endOffset = cal.compare(end,getStart(),false);
    Interval range = getRangeThatIntervalCanBeMoved(start,startOffset,startOffset);


    if (extendDuration > 0)
      extendDuration = Math.min(extendDuration,endOffset - startOffset);
    else
      extendDuration = Math.max(extendDuration,range.getStart()  - startOffset); // don't allow to shift more than possible

    if (firstBar)
      setTotalDelay(calcTotalDelay() + extendDuration);
    newDetail().extendBefore(startOffset,extendDuration);
View Full Code Here

TOP

Related Classes of com.projity.pm.time.Interval

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.