com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class GanttBarStyle



  • public class GanttBarStyle
    extends Object

    Represents a bar style used by MSP in Gantt Chart view.

    • Constructor Detail

      • GanttBarStyle

        public GanttBarStyle()

        Initializes a new instance of the GanttBarStyle class.

    • Method Detail

      • getBottomField

        public final int getBottomField()

        Gets data to be displayed on the bottom of the bar. Field.

        Returns:
        data to be displayed on the bottom of the bar.
      • setBottomField

        public final void setBottomField(int value)

        Sets data to be displayed on the bottom of the bar. Field.

        Parameters:
        value - data to be displayed on the bottom of the bar.
      • getEndShape

        public final int getEndShape()

        Gets an end shape of the bar.

        Returns:
        an end shape of the bar.
      • setEndShape

        public final void setEndShape(int value)

        Sets an end shape of the bar.

        Parameters:
        value - an end shape of the bar.
      • getEndShapeColor

        public final Color getEndShapeColor()

        Gets a color of the end shape.

        Returns:
        a color of the end shape.
      • setEndShapeColor

        public final void setEndShapeColor(Color value)

        Sets a color of the end shape.

        Parameters:
        value - a color of the end shape.
      • getEndShapeType

        public final int getEndShapeType()

        Gets a type of the end shape. GanttBarType.

        Returns:
        a type of the end shape.
      • setEndShapeType

        public final void setEndShapeType(int value)

        Sets a type of the end shape. GanttBarType.

        Parameters:
        value - a type of the end shape.
      • getFrom

        public final int getFrom()

        Gets a start point position of the gantt bar. Field.

        Returns:
        a start point position of the gantt bar.
      • setFrom

        public final void setFrom(int value)

        Sets a start point position of the gantt bar. Field.

        Parameters:
        value - a start point position of the gantt bar.
      • getInsideField

        public final int getInsideField()

        Gets data to be displayed inside of the bar. Field.

        Returns:
        data to be displayed inside of the bar.
      • setInsideField

        public final void setInsideField(int value)

        Sets data to be displayed inside of the bar. Field.

        Parameters:
        value - data to be displayed inside of the bar.
      • getLeftField

        public final int getLeftField()

        Gets data to be displayed on the left of the bar. Field.

        Returns:
        data to be displayed on the left of the bar.
      • setLeftField

        public final void setLeftField(int value)

        Sets data to be displayed on the left of the bar. Field.

        Parameters:
        value - data to be displayed on the left of the bar.
      • getMiddleFillPattern

        public final int getMiddleFillPattern()

        Gets a fill pattern of the gantt bar.

        Returns:
        a fill pattern of the gantt bar.
      • setMiddleFillPattern

        public final void setMiddleFillPattern(int value)

        Sets a fill pattern of the gantt bar.

        Parameters:
        value - a fill pattern of the gantt bar.
      • getMiddleShape

        public final int getMiddleShape()

        Gets a middle shape of the bar.

        Returns:
        a middle shape of the bar.
      • setMiddleShape

        public final void setMiddleShape(int value)

        Sets a middle shape of the bar.

        Parameters:
        value - a middle shape of the bar.
      • getMiddleShapeColor

        public final Color getMiddleShapeColor()

        Gets a color of the middle shape.

        Returns:
        a color of the middle shape.
      • setMiddleShapeColor

        public final void setMiddleShapeColor(Color value)

        Sets a color of the middle shape.

        Parameters:
        value - a color of the middle shape.
      • getName

        public final String getName()

        Gets a name of the style.

        Returns:
        a name of the style.
      • setName

        public final void setName(String value)

        Sets a name of the style.

        Parameters:
        value - a name of the style.
      • getParentStyle

        public final GanttBarStyle getParentStyle()

        Gets parent (or common) style for custom task-specific style.


        Task can have multiple custom styles with different parent styles. For example consider task having custom style with "Critical" parent style and another style with "Normal" parent style. Simply put, if task is critical, the first style is applied. If task becomes non-critical, the second style is applied (this logic is inherited from Microsoft Project Professional).
        Returns:
        parent (or common) style for custom task-specific style.
      • getRightField

        public final int getRightField()

        Gets data to be displayed on the right of the bar. Field.

        Returns:
        data to be displayed on the right of the bar.
      • setRightField

        public final void setRightField(int value)

        Sets data to be displayed on the right of the bar. Field.

        Parameters:
        value - data to be displayed on the right of the bar.
      • getRow

        public final int getRow()

        Gets a row number.


        Can be from 1 to 4 (1 is default value).
        Returns:
        a row number.
      • setRow

        public final void setRow(int value)

        Sets a row number.


        Can be from 1 to 4 (1 is default value).
        Parameters:
        value - a row number.
      • getShowFor

        @Deprecated
        public final String getShowFor()
        Deprecated. This property will be deleted in release 20.11. Please use more specific 'ShowForCategories' for base styles and 'ShowForTaskUid' for per-task styles.

        Gets task categories separated by semicolons, which are to be represented by the gantt bar.

        Returns:
        task categories separated by semicolons, which are to be represented by the gantt bar.
      • setShowFor

        @Deprecated
        public final void setShowFor(String value)
        Deprecated. This property will be deleted in release 20.11. Please use more specific 'ShowForCategories' for base styles and 'ShowForTaskUid' for per-task styles.

        Sets task categories separated by semicolons, which are to be represented by the gantt bar.

        Parameters:
        value - task categories separated by semicolons, which are to be represented by the gantt bar.
      • getShowForCategories

        public final List<Integer> getShowForCategories()

        Gets task categories for which the style is applied. Is applicable for parent (or common) styles of bars in Gantt chart (see GanttChartView.BarStyles(GanttChartView.getBarStyles())).

        Returns:
        task categories for which the style is applied.
      • setShowForCategories

        public final void setShowForCategories(List<Integer> value)

        Sets task categories for which the style is applied. Is applicable for parent (or common) styles of bars in Gantt chart (see GanttChartView.BarStyles(GanttChartView.getBarStyles())).

        Parameters:
        value - task categories for which the style is applied.
      • getShowForTaskUid

        public final Integer getShowForTaskUid()

        Gets Unique Id of a task for which the style is applied. Is applicable for task-specific styles of bars in Gantt chart (see GanttChartView.CustomBarStyles(GanttChartView.getCustomBarStyles())).

        Returns:
        Unique Id of a task for which the style is applied.
      • setShowForTaskUid

        public final void setShowForTaskUid(Integer value)

        Sets Unique Id of a task for which the style is applied. Is applicable for task-specific styles of bars in Gantt chart (see GanttChartView.CustomBarStyles(GanttChartView.getCustomBarStyles())).

        Parameters:
        value - Unique Id of a task for which the style is applied.
      • getStartShape

        public final int getStartShape()

        Gets a start shape of the bar.

        Returns:
        a start shape of the bar.
      • setStartShape

        public final void setStartShape(int value)

        Sets a start shape of the bar.

        Parameters:
        value - a start shape of the bar.
      • getStartShapeColor

        public final Color getStartShapeColor()

        Gets a color of the start shape.

        Returns:
        a color of the start shape.
      • setStartShapeColor

        public final void setStartShapeColor(Color value)

        Sets a color of the start shape.

        Parameters:
        value - a color of the start shape.
      • getStartShapeType

        public final int getStartShapeType()

        Gets a type of the start shape.

        Returns:
        a type of the start shape.
      • setStartShapeType

        public final void setStartShapeType(int value)

        Sets a type of the start shape.

        Parameters:
        value - a type of the start shape.
      • getTo

        public final int getTo()

        Gets a finish point position of the gantt bar.

        Returns:
        a finish point position of the gantt bar.
      • setTo

        public final void setTo(int value)

        Sets a finish point position of the gantt bar.

        Parameters:
        value - a finish point position of the gantt bar.
      • getTopField

        public final int getTopField()

        Gets data to be displayed on the top of the bar.

        Returns:
        data to be displayed on the top of the bar.
      • setTopField

        public final void setTopField(int value)

        Sets data to be displayed on the top of the bar.

        Parameters:
        value - data to be displayed on the top of the bar.
      • setParentStyle

        public final void setParentStyle(GanttBarStyle value)

        Sets parent (or common) style for custom task-specific style.


        Task can have multiple custom styles with different parent styles. For example consider task having custom style with "Critical" parent style and another style with "Normal" parent style. Simply put, if task is critical, the first style is applied. If task becomes non-critical, the second style is applied (this logic is inherited from Microsoft Project Professional).
        Parameters:
        value - parent (or common) style for custom task-specific style.