Package net.sourceforge.ganttproject.chart

Examples of net.sourceforge.ganttproject.chart.Chart


    }

    /** Print the project */
    public void printProject() {

        Chart chart = getUIFacade().getActiveChart();

        if (chart==null) {
            getUIFacade().showErrorDialog("Failed to find active chart.\nPlease report this problem to GanttProject development team");
            return;
        }
View Full Code Here


    }

    public void previewPrint() {

        Date startDate, endDate;
        Chart chart = getUIFacade().getActiveChart();

        if (chart==null) {
            getUIFacade().showErrorDialog("Failed to find active chart.\nPlease report this problem to GanttProject development team");
            return;
        }

        try {
            startDate = chart.getStartDate();
            endDate = chart.getEndDate();
        } catch (UnsupportedOperationException e) {
            startDate = null;
            endDate = null;
        }
View Full Code Here

        myUIFacade = uiFacade;
        myGanttChart = uiFacade.getGanttChart().createCopy();
    }

    public void run(File outputFile,ExportFinalizationJob finalizationJob) throws Exception {
        Chart chart = myUIFacade.getActiveChart();
        if (chart==null) {
            chart = myUIFacade.getGanttChart();
        }
        RenderedImage renderedImage = chart.getRenderedImage(new GanttExportSettings());
        ImageIO.write(renderedImage, myFileTypeOption.proposeFileExtension(),
                outputFile);
        finalizationJob.run(new File[] { outputFile });
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.ganttproject.chart.Chart

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.