Package org.projectforge.gantt

Examples of org.projectforge.gantt.GanttChart.create()


      imageFormat = ImageFormat.PNG;
    }
    final String filename = FileHelper.createSafeFilename(getData().getName(), suffix, 50, true);
    final byte[] content;
    if (imageFormat != null) {
      final Document document = ganttChart.create();
      content = BatikImageRenderer.getByteArray(document, ganttChart.getWidth(), imageFormat);
      DownloadUtils.setDownloadTarget(content, filename);
    } else {
      final MimeType type;
      if (GanttChartEditForm.EXPORT_MS_PROJECT_MPX.equals(exportFormat) == true) {
View Full Code Here


  protected void redraw()
  {
    final GanttChart ganttChart = createGanttChart();
    final Component oldGanttImage = ganttImage;
    if (ganttChart != null) {
      final Document document = ganttChart.create();
      if (document != null) {
        ganttImage = new ImagePanel(form.imagePanel.newChildId(), new BatikImage(ImagePanel.IMAGE_ID, document, getGanttChartStyle()
            .getWidth()));
      } else {
        ganttImage = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.