com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class SaveOptions

    • Method Detail

      • getBarStyles

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

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

        public final boolean getDrawNonWorkingTime()

        Gets a value indicating whether non-working time should be drawn (Default value is TRUE).

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

        public final void setDrawNonWorkingTime(boolean value)

        Sets a value indicating whether non-working time should be drawn (Default value is TRUE).

        Parameters:
        value - true if non-working time are to be rendered, false otherwise.
      • getEndDate

        public final Date getEndDate()

        Gets a date to finish rendering to.

        Returns:
        the end date (Date).
      • setEndDate

        public final void setEndDate(Date value)

        Sets a date to finish rendering to.

        Parameters:
        value - the end date (Date).
      • getFitContent

        public final boolean getFitContent()

        Gets a value indicating whether row height should be increased to fit content.

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

        public final void setFitContent(boolean value)

        Sets a value indicating whether row height should be increased to fit content.

        Parameters:
        value - true if rows height should be increased to fit content, false otherwise.
      • getGridlines

        public final List<Gridline> getGridlines()

        Gets a list of Gridline that appear in project view.

        Returns:
        list of gridlines (Gridline).
      • setGridlines

        public final void setGridlines(List<Gridline> value)

        Sets a list of Gridline that appear in project view.

        Parameters:
        value - list of gridlines (Gridline).
      • getLegendOnEachPage

        public final boolean getLegendOnEachPage()

        Gets a value indicating whether legend should be shown on each page (Default value is TRUE).

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

        public final void setLegendOnEachPage(boolean value)

        Sets a value indicating whether legend should be shown on each page (Default value is TRUE).

        Parameters:
        value - true if a legend are to be rendered on each page, false otherwise.
      • getMarkCriticalTasks

        public final boolean getMarkCriticalTasks()

        Gets a value indicating whether critical tasks should be displayed in red color (Default value is FALSE).

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

        public final void setMarkCriticalTasks(boolean value)

        Sets a value indicating whether critical tasks should be displayed in red color (Default value is FALSE).

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

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

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

        public final int getPageCount()

        Gets the number of pages of project.

        Returns:
        project pages count.
      • getPageSize

        public final int getPageSize()

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

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

        public final void setPageSize(int value)

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

        Parameters:
        value - size of page to render (PageSize).
      • setPresentationFormat

        public final void setPresentationFormat(int value)

        Sets the PresentationFormat(getPresentationFormat()/setPresentationFormat(int)) in which the document will be saved.

        Parameters:
        value - the presentation format (PresentationFormat).
      • getRollUpGanttBars

        public final boolean getRollUpGanttBars()

        Gets a value indicating whether subtasks on the summary task bar should be marked (Default value is FALSE).

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

        public final void setRollUpGanttBars(boolean value)

        Sets a value indicating whether subtasks on the summary task bar should be marked (Default value is FALSE).

        Parameters:
        value - true if subtasks are to be marked on the summary task bar, false otherwise.
      • getSaveFormat

        public final int getSaveFormat()

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

        Returns:
        save file format (SaveFileFormat).
      • getShowProjectSummaryTask

        public final boolean getShowProjectSummaryTask()

        Gets a value indicating whether project summary task if set to true.

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

        public final void setShowProjectSummaryTask(boolean value)

        Sets a value indicating whether project summary task if set to true.

        Parameters:
        value - true if project summary task needs to be rendered, false otherwise.
      • getStartDate

        public final Date getStartDate()

        Gets the date to start rendering from.

        Returns:
        the start date (Date).
      • setStartDate

        public final void setStartDate(Date value)

        Sets the date to start rendering from.

        Parameters:
        value - the start date (Date).
      • getTasksComparer

        public final Comparator<Task> getTasksComparer()

        Gets the comparer to sort tasks on Gantt Chart.

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

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

        public final List<TextStyle> getTextStyles()

        Gets the list of the instances of the TextStyle class that appear in project view.

        Returns:
        list of text styles (List<TextStyle>).
      • setTextStyles

        public final 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>).
      • getTimescale

        public final int getTimescale()

        Gets the minimal time period to render. The default value is TimescaleDays(getTimescale()/setTimescale(int)).

        Returns:
        timescale to render (Timescale).
      • setTimescale

        public final void setTimescale(int value)

        Sets the minimal time period to render. The default value is TimescaleDays(getTimescale()/setTimescale(int)).

        Parameters:
        value - timescale to render (Timescale).
      • getTimescaleTier

        public final TimescaleTier getTimescaleTier()

        Gets the timescale tier of the Gantt Chart view. The default value is null.

        Returns:
        the timescale tier of the Gantt Chart view.
      • setTimescaleTier

        public final 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.
      • getUseGradientBrush

        public boolean getUseGradientBrush()

        Gets a value indicating whether gradient brush should be used when rendering Gantt Chart.

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

        public void setUseGradientBrush(boolean value)

        Sets a value indicating whether gradient brush should be used when rendering Gantt Chart.

        Parameters:
        value - true if gradient brush is used when rendering; otherwise, false.
      • getView

        public final ProjectView getView()

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

        Returns:
        project view (ProjectView).
      • setView

        public final void setView(ProjectView value)

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

        Parameters:
        value - project view (ProjectView).