Package net.sourceforge.ganttproject.resource.LoadDistribution

Examples of net.sourceforge.ganttproject.resource.LoadDistribution.Load


     * Renders the list of loads in a single chart row
     * Preconditions: loads come from the same distribution and are ordered by
     * their time offsets
     */
    private void renderLoads(List/*<Load>*/ loads, int ypos) {
        Load prevLoad = null;
        Load curLoad = null;
        LinkedList/*<Offset>*/ offsets = getOffsets();
        String suffix = "";
        for (int curIndex=1; curIndex<loads.size() && offsets.getFirst()!=null; curIndex++) {
            curLoad = (Load) loads.get(curIndex);
            prevLoad = (Load) loads.get(curIndex-1);
View Full Code Here


     */
    private void buildTasksLoadsRectangles(List/*<Load>*/ partition, int ypos) {
        LinkedList/*<Offset>*/ offsets = getOffsets();
        Iterator/*<Load>*/ loads = partition.iterator();
        while (loads.hasNext() && offsets.getFirst()!=null) {
            final Load nextLoad = (Load) loads.next();
            final Date nextStart = nextLoad.startDate;
            final Date nextEnd = nextLoad.endDate;

            Rectangle nextRect = createRectangle(offsets, nextStart, nextEnd, ypos);
            if (nextRect==null) {
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.resource.LoadDistribution.Load

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.