EN · DE · RU · FR · ES

#460: GanttChartSettings.java

projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java Java class, projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java 115 lines · 61 code · 35 comments · 19 blank
Purpose: Source file: projectforge/business/gantt/GanttChartSettings.java. GanttChartSettings.java is part of the ProjectForge open-source project management application.

Source (first 100 lines)

/////////////////////////////////////////////////////////////////////////////
//
// Project ProjectForge Community Edition
//         www.projectforge.org
//
// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
//
// ProjectForge is dual-licensed.
//
// This community edition is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as published
// by the Free Software Foundation; version 3 of the License.
//
// This community edition is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, see http://www.gnu.org/licenses/.
//
/////////////////////////////////////////////////////////////////////////////

package org.projectforge.business.gantt;

import org.projectforge.framework.xmlstream.XmlField;
import org.projectforge.framework.xmlstream.XmlObject;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Set;

@XmlObject(alias = "ganttChartSettings")
public class GanttChartSettings implements Serializable
{
  private static final long serialVersionUID = 314444138347629986L;

  @XmlField(defaultStringValue = "Gantt diagram by ProjectForge®")
  private String title = "Gantt diagram by ProjectForge®";

  private LocalDate fromDate;

  private LocalDate toDate;

  private boolean showOnlyVisibles;

  private Set<Serializable> openNodes;

  /**
   * Title to show at the upper left corner.
   */
  public String getTitle()
  {
    return title;
  }

  public GanttChartSettings setTitle(String title)
  {
    this.title = title;
    return this;
  }

  /**
   * If not set then the start date of the Gantt diagram will be automatically calculated.
   */
  public LocalDate getFromDate()
  {
    return fromDate;
  }

  public GanttChartSettings setFromDate(LocalDate fromDate)
  {
    this.fromDate = fromDate;
    return this;
  }

  /**
   * If not set then the end date of the Gantt diagram will be automatically calculated.
   */
  public LocalDate getToDate()
  {
    return toDate;
  }

  public GanttChartSettings setToDate(LocalDate toDate)
  {
    this.toDate = toDate;
    return this;
  }

  public boolean isShowOnlyVisibles()
  {
    return showOnlyVisibles;
  }

  public GanttChartSettings setShowOnlyVisibles(boolean showOnlyVisibles)
  {
    this.showOnlyVisibles = showOnlyVisibles;
    return this;
  }

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.
5f7ef41b8 Copyright 2021 -> 2022

868d6abb7

2025 -> 2026
868d6abb75cd191a892911ac8e45058932cf9074
diff --git a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
index 99cc8b67e..4736d1380 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2026 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

63081666f

Source file headers: 2024-> 2025.
63081666f620fb87315f01b817e560e0b2f6a33a
diff --git a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
index c6baa1dcd..99cc8b67e 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2025 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

b6092df09

Copyright 2023 -> 2024
b6092df0927c4a3b161e888445f31dcab57493f2
diff --git a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
index 0cc081a63..c6baa1dcd 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2024 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

ab45d51fa

Copyright 2001-2022 -> 2001-2023.
ab45d51fa419ede6174b31d69987f96d4b841ff9
diff --git a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
index 2e6addeb2..0cc081a63 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2022 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2023 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //

5f7ef41b8

Copyright 2021 -> 2022
5f7ef41b8cbbf29b1bff094f0c0b708dcaecb19e
diff --git a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
index bd560ab8c..2e6addeb2 100644
--- a/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
+++ b/projectforge-business/src/main/java/org/projectforge/business/gantt/GanttChartSettings.java
@@ -3,7 +3,7 @@
 // Project ProjectForge Community Edition
 //         www.projectforge.org
 //
-// Copyright (C) 2001-2021 Micromata GmbH, Germany (www.micromata.com)
+// Copyright (C) 2001-2022 Micromata GmbH, Germany (www.micromata.com)
 //
 // ProjectForge is dual-licensed.
 //