Package net.sourceforge.ganttproject.resource

Examples of net.sourceforge.ganttproject.resource.LoadDistribution


     */
    public void render() {
       beforeProcessingTimeFrames();
       int ypos = 0 - getConfig().getYOffSet();
       for (int i=0; i<myDistributions.size(); i++) {
         LoadDistribution nextDistribution = (LoadDistribution) myDistributions.get(i);
           List loads = nextDistribution.getLoads();
           renderLoads(nextDistribution.getDaysOff(), ypos);
           renderLoads(loads, ypos);
           if (myResourcechart.isExpanded(nextDistribution.getResource())) {
               renderLoadDetails(nextDistribution, ypos);
               ypos += calculateGap(nextDistribution.getResource());
           }
           ypos += getConfig().getRowHeight();
           GraphicPrimitiveContainer.Line nextLine = getPrimitiveContainer().createLine(
               0, ypos,(int) getChartModel().getBounds().getWidth(), ypos);
           nextLine.setForegroundColor(Color.GRAY);
View Full Code Here


        getPrimitiveContainer().clear();
        ProjectResource[] resources = ((ChartModelResource) getChartModel())
                .getVisibleResources();
        for (int i = 0; i < resources.length; i++) {
            ProjectResource nextResource = resources[i];
            LoadDistribution nextDistribution = nextResource.getLoadDistribution();
            myDistributions.add(nextDistribution);
        }
    }
View Full Code Here

TOP

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

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.