ProjectManagementOptions

Inheritance: java.lang.Object

public class ProjectManagementOptions

Provides options for rendering project management files.

The ProjectManagementOptions class encapsulates various settings and parameters that can be used to control the rendering of project management files (such as Microsoft Project or similar) in the GroupDocs.Viewer component.

Example usage:


 PngViewOptions pngViewOptions = new PngViewOptions();
 ProjectManagementOptions projectManagementOptions = pngViewOptions.getProjectManagementOptions();
 projectManagementOptions.setPageSize(PageSize.A4);
 projectManagementOptions.setStartDate(new Date(2021, 11, 23));

 try (Viewer viewer = new Viewer("document.docx")) {
     viewer.view(pngViewOptions);
     // Use the viewer object for further operations
 }
 

Constructors

Constructor Description
ProjectManagementOptions() Initializes a new instance of the ProjectManagementOptions class.

Methods

Method Description
getPageSize() Retrieves the output page size.
setPageSize(PageSize value) Sets the output page size.
getTimeUnit() Retrieves the time unit.
setTimeUnit(TimeUnit value) Retrieves the time unit.
getStartDate() Retrieves the start date of the Gantt Chart View to be included in the output.
setStartDate(Date value) Sets the start date of the Gantt Chart View to be included in the output.
getEndDate() Retrieves the end date of the Gantt Chart View to be included in the output.
setEndDate(Date value) Sets the end date of the Gantt Chart View to be included in the output.

ProjectManagementOptions()

public ProjectManagementOptions()

Initializes a new instance of the ProjectManagementOptions class.

getPageSize()

public final PageSize getPageSize()

Retrieves the output page size.

Returns: PageSize - the output page size.

setPageSize(PageSize value)

public final void setPageSize(PageSize value)

Sets the output page size.

Parameters:

Parameter Type Description
value PageSize The output page size.

getTimeUnit()

public final TimeUnit getTimeUnit()

Retrieves the time unit.

Returns: TimeUnit - the time unit.

setTimeUnit(TimeUnit value)

public final void setTimeUnit(TimeUnit value)

Retrieves the time unit.

Parameters:

Parameter Type Description
value TimeUnit The time unit.

getStartDate()

public final Date getStartDate()

Retrieves the start date of the Gantt Chart View to be included in the output.

Note: Use this option when you need to render a specific time interval of the project within the Gantt Chart View.

Returns: java.util.Date - the start date of the Gantt Chart View.

setStartDate(Date value)

public final void setStartDate(Date value)

Sets the start date of the Gantt Chart View to be included in the output.

Note: Use this option when you need to render a specific time interval of the project within the Gantt Chart View.

Parameters:

Parameter Type Description
value java.util.Date The start date of the Gantt Chart View.

getEndDate()

public final Date getEndDate()

Retrieves the end date of the Gantt Chart View to be included in the output.

Note: Use this option when you need to render a specific time interval of the project within the Gantt Chart View.

Returns: java.util.Date - the end date of the Gantt Chart View.

setEndDate(Date value)

public final void setEndDate(Date value)

Sets the end date of the Gantt Chart View to be included in the output.

Note: Use this option when you need to render a specific time interval of the project within the Gantt Chart View.

Parameters:

Parameter Type Description
value java.util.Date The end date of the Gantt Chart View.