com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class SaveOptions

    • Method Detail

      • getShowProjectSummaryTask

        public boolean getShowProjectSummaryTask()

        Renders project summary task if set to true.

        Returns:
        true if project summary task needs to be rendered, false otherwise.
      • setShowProjectSummaryTask

        public void setShowProjectSummaryTask(boolean value)
        Sets whether to render project summary task or not.
        Parameters:
        value - true if project summary task needs to be rendered, false otherwise.
      • getSaveFormat

        public int getSaveFormat()

        Specifies the format in which the document will be saved if this save options object is used.

        Returns:
        save file format (SaveFileFormat).
      • getPresentationFormat

        public int getPresentationFormat()

        Specifies the PresentationFormat in which the document will be saved.

        Returns:
        the presentation format (PresentationFormat).
      • setPresentationFormat

        public void setPresentationFormat(int value)
        Sets the presentation format in which the document will be saved.
        Parameters:
        value - the presentation format (PresentationFormat).
      • getStartDate

        public Date getStartDate()
        Returns the date to start rendering from.
        Returns:
        the start date (Date).
      • setStartDate

        public void setStartDate(Date value)
        Sets the date to start rendering from.
        Parameters:
        value - the start date (Date).
      • getEndDate

        public Date getEndDate()
        Returns the date to finish rendering to.
        Returns:
        the end date (Date).
      • setEndDate

        public void setEndDate(Date value)
        Sets the date to finish rendering to.
        Parameters:
        value - the end date (Date).
      • getView

        public ProjectView getView()

        Stores a list of the view columns to render (GanttChartColumn). If not setInternal then task ids, task names, start and finish are rendered only.

        Returns:
        project view (ProjectView).
      • setView

        public void setView(ProjectView value)
        Sets a project view to render.
        Parameters:
        value - project view (ProjectView).
      • getPageCount

        public int getPageCount()

        Gets the number of pages of project.

        Returns:
        project pages count.
      • getTimescale

        public int getTimescale()

        The minimal time period to render. The default value is TimescaleDays.

        Returns:
        timescale to render (Timescale).
      • setTimescale

        public void setTimescale(int value)
        Sets the minimal time period to render.
        Parameters:
        value - timescale to render (Timescale).
      • getTimescaleTier

        public TimescaleTier getTimescaleTier()
        Returns the timescale tier of the Gantt Chart view. The default value is null.
        Returns:
        the timescale tier of the Gantt Chart view.
      • setTimescaleTier

        public void setTimescaleTier(TimescaleTier value)
        Sets the timescale tier of the Gantt Chart view. The default value is null.
        Parameters:
        value - the timescale tier of the Gantt Chart view.
      • getFitContent

        public boolean getFitContent()

        Increases row height to fit content if set to true.

        Returns:
        true if rows height should be increased to fit content, false otherwise.
      • setFitContent

        public void setFitContent(boolean value)
        Increases row height to fit content if setInternal to true, remains fixed otherwise.
        Parameters:
        value - true if rows height should be increased to fit content, false otherwise.
      • getPageSize

        public int getPageSize()

        Specifies size of page to be rendered (Default value is PageSize.A4).

        Returns:
        size of page to render (PageSize).
      • setPageSize

        public void setPageSize(int value)
        Specifies size of page to be rendered (Default value is PageSize.A4).
        Parameters:
        value - size of page to render (PageSize).
      • getLegendOnEachPage

        public boolean getLegendOnEachPage()

        Shows legend on each page (Default value is TRUE).

        Returns:
        true if a legend are to be rendered on each page, false otherwise.
      • setLegendOnEachPage

        public void setLegendOnEachPage(boolean value)
        Determines whether to shows legend on each page or not (Default value is TRUE).
        Parameters:
        value - true if a legend are to be rendered on each page, false otherwise.
      • getDrawNonWorkingTime

        public boolean getDrawNonWorkingTime()

        Draws non-working time (Default value is TRUE).

        Returns:
        true if non-working time are to be rendered, false otherwise.
      • setDrawNonWorkingTime

        public void setDrawNonWorkingTime(boolean value)
        Determines whether to render non-working time or not.
        Parameters:
        value - true if non-working time are to be rendered, false otherwise.
      • getNonWorkingTimeColor

        public Color getNonWorkingTimeColor()
        Returns non-working time color.
        Returns:
        non-working time color (java.awt.Color).
      • setNonWorkingTimeColor

        public void setNonWorkingTimeColor(Color value)
        Sets non-working time color.
        Parameters:
        value - non-working time color (java.awt.Color).
      • getRollUpGanttBars

        public boolean getRollUpGanttBars()

        Marks subtasks on the summary task bar (Default value is FALSE).

        Returns:
        true if subtasks are to be marked on the summary task bar, false otherwise.
      • setRollUpGanttBars

        public void setRollUpGanttBars(boolean value)
        Determines whether to mark subtasks on the summary task bar.
        Parameters:
        value - true if subtasks are to be marked on the summary task bar, false otherwise.
      • getGridlines

        public List<Gridline> getGridlines()
        Returns a list of Gridline that appear in project view.
        Returns:
        list of gridlines (Gridline).
      • setGridlines

        public void setGridlines(List<Gridline> value)
        Sets a list of Gridline that appear in project view.
        Parameters:
        value - list of gridlines (Gridline).
      • getTextStyles

        public List<TextStyle> getTextStyles()
        Returns a list of text styles (TextStyle) that appear in project view.
        Returns:
        list of text styles (List<TextStyle>).
      • setTextStyles

        public void setTextStyles(List<TextStyle> value)
        Sets a list of text styles (TextStyle) that appear in project view.
        Parameters:
        value - list of text styles (List<TextStyle>).
      • getBarStyles

        public List<BarStyle> getBarStyles()
        Returns a list of BarStyle that appear in project view.
        Returns:
        list of bar styles (List<BarStyle>).
      • setBarStyles

        public void setBarStyles(List<BarStyle> value)
        Sets a list of BarStyle that appear in project view.
        Parameters:
        value - list of bar styles (List<BarStyle>).
      • getMarkCriticalTasks

        public boolean getMarkCriticalTasks()

        Display critical tasks in red color (Default value is FALSE).

        Returns:
        true if critical tasks are to be marked, false otherwise.
      • setMarkCriticalTasks

        public void setMarkCriticalTasks(boolean value)

        Determines whether to display critical tasks in red color (Default value is FALSE).

        Parameters:
        value - true if critical tasks are to be marked, false otherwise.
      • getTasksComparer

        public Comparator<Task> getTasksComparer()

        Returns task comparator to sort tasks on Gantt Chart.

        Returns:
        task comparator (Comparator<Task>).
      • setTasksComparer

        public void setTasksComparer(Comparator<Task> value)
        Sets task comparator to sort tasks on Gantt Chart.
        Parameters:
        value - task comparator (Comparator<Task>).
      • getUseGradientBrush

        public boolean getUseGradientBrush()

        Determines whether to use gradient brush when rendering Gantt Chart.

        Returns:
        true if gradient brush is used when rendering; otherwise, false.
      • setUseGradientBrush

        public void setUseGradientBrush(boolean value)
        Determines whether to use gradient brush when rendering Gantt Chart.
        Parameters:
        value - true if gradient brush is used when rendering; otherwise, false.