BarStyle
Inheritance: java.lang.Object
public class BarStyle
Change the visual style of the bar for the item in the project view.
Constructors
Constructor | Description |
---|---|
BarStyle() | Initializes a new instance of the BarStyle class. |
Methods
Method | Description |
---|---|
getBarColor() | Gets java.awt.Color of the bar style. |
getBarShape() | Gets BarShape (getBarShape()/setBarShape(int)) of the bar style. |
getBottomBarTextConverter() | Gets user-defined converter to get text to render on the bottom of the task’s bar. |
getBottomField() | Gets a field to be displayed on the bottom of the bar. |
getEndShape() | Gets Shape at the end of the bar. |
getEndShapeColor() | Gets java.awt.Color of the shape at the end of the bar. |
getEndShapeType() | Gets a type of the end shape. |
getFrom() | Gets a start point position of the gantt bar. |
getInsideBarTextConverter() | Gets user-defined converter to get text to render inside of the task’s bar. |
getInsideField() | Gets a field to be displayed inside of the bar. |
getItemType() | Gets BarItemType of the bar style. |
getLeftBarTextConverter() | Gets user-defined converter to get text to render on the left of the task’s bar. |
getLeftField() | Gets a field to be displayed on the left of the bar. |
getRightBarTextConverter() | Gets user-defined converter to get text to render on the right of the task’s bar. |
getRightField() | Gets a field to be displayed on the right of the bar. |
getStartShape() | Gets Shape at the beginning of the bar. |
getStartShapeColor() | Gets java.awt.Color of the shape at the beginning of the bar. |
getStartShapeType() | Gets a type of the start shape. |
getTextStyle() | Gets style of the bar’s text. |
getTo() | Gets a finish point position of the gantt bar. |
getTopBarTextConverter() | Gets user-defined converter to get text to render on the top of the task’s bar. |
getTopField() | Gets a field to be displayed on the top of the bar. |
setBarColor(Color value) | Sets java.awt.Color of the bar style. |
setBarShape(int value) | Sets BarShape (getBarShape()/setBarShape(int)) of the bar style. |
setBottomBarTextConverter(TaskBarTextConverter value) | Sets user-defined converter to get text to render on the bottom of the task’s bar. |
setBottomField(int value) | Sets a field to be displayed on the bottom of the bar. |
setEndShape(int value) | Sets Shape at the end of the bar. |
setEndShapeColor(Color value) | Sets java.awt.Color of the shape at the end of the bar. |
setEndShapeType(int value) | Sets a type of the end shape. |
setFrom(int value) | Sets a start point position of the gantt bar. |
setInsideBarTextConverter(TaskBarTextConverter value) | Sets user-defined converter to get text to render inside of the task’s bar. |
setInsideField(int value) | Sets a field to be displayed inside of the bar. |
setItemType(int value) | Sets BarItemType of the bar style. |
setLeftBarTextConverter(TaskBarTextConverter value) | Sets user-defined converter to get text to render on the left of the task’s bar. |
setLeftField(int value) | Sets a field to be displayed on the left of the bar. |
setRightBarTextConverter(TaskBarTextConverter value) | Sets user-defined converter to get text to render on the right of the task’s bar. |
setRightField(int value) | Sets a field to be displayed on the right of the bar. |
setStartShape(int value) | Sets Shape at the beginning of the bar. |
setStartShapeColor(Color value) | Sets java.awt.Color of the shape at the beginning of the bar. |
setStartShapeType(int value) | Sets a type of the start shape. |
setTextStyle(TextStyle value) | Sets style of the bar’s text. |
setTo(int value) | Sets a finish point position of the gantt bar. |
setTopBarTextConverter(TaskBarTextConverter value) | Sets user-defined converter to get text to render on the top of the task’s bar. |
setTopField(int value) | Sets a field to be displayed on the top of the bar. |
BarStyle()
public BarStyle()
Initializes a new instance of the BarStyle class.
getBarColor()
public final Color getBarColor()
Gets java.awt.Color of the bar style.
Returns: java.awt.Color - a color of the bar style.
getBarShape()
public final int getBarShape()
Gets BarShape
(getBarShape()/setBarShape(int)) of the bar style.
Returns: int - BarShape of the bar style.
getBottomBarTextConverter()
public final TaskBarTextConverter getBottomBarTextConverter()
Gets user-defined converter to get text to render on the bottom of the task’s bar. Overrides the value of BottomField
(getBottomField()/setBottomField(int)) property.
Returns: TaskBarTextConverter - user-defined converter to get text to render on the bottom of the task’s bar.
getBottomField()
public final int getBottomField()
Gets a field to be displayed on the bottom of the bar.
Returns: int - a field to be displayed on the bottom of the bar.
getEndShape()
public final int getEndShape()
Gets Shape at the end of the bar.
Returns: int - Shape at the end of the bar.
getEndShapeColor()
public final Color getEndShapeColor()
Gets java.awt.Color of the shape at the end of the bar.
Returns: java.awt.Color - a color of the shape at the beginning of the bar.
getEndShapeType()
public final int getEndShapeType()
Gets a type of the end shape. GanttBarType.
Returns: int - a type of the end shape.
getFrom()
public final int getFrom()
Gets a start point position of the gantt bar. Field.
Returns: int - a start point position of the gantt bar.
getInsideBarTextConverter()
public final TaskBarTextConverter getInsideBarTextConverter()
Gets user-defined converter to get text to render inside of the task’s bar. Overrides the value of InsideField
(getInsideField()/setInsideField(int)) property.
Returns: TaskBarTextConverter - user-defined converter to get text to render inside of the task’s bar.
getInsideField()
public final int getInsideField()
Gets a field to be displayed inside of the bar.
Returns: int - a field to be displayed inside of the bar.
getItemType()
public final int getItemType()
Gets BarItemType of the bar style.
Returns: int - BarItemType of the bar style.
getLeftBarTextConverter()
public final TaskBarTextConverter getLeftBarTextConverter()
Gets user-defined converter to get text to render on the left of the task’s bar. Overrides the value of LeftField
(getLeftField()/setLeftField(int)) property.
Returns: TaskBarTextConverter - user-defined converter to get text to render on the left of the task’s bar.
getLeftField()
public final int getLeftField()
Gets a field to be displayed on the left of the bar.
Returns: int - a field to be displayed on the left of the bar.
getRightBarTextConverter()
public final TaskBarTextConverter getRightBarTextConverter()
Gets user-defined converter to get text to render on the right of the task’s bar. Overrides the value of RightField
(getRightField()/setRightField(int)) property.
Returns: TaskBarTextConverter - user-defined converter to get text to render on the right of the task’s bar.
getRightField()
public final int getRightField()
Gets a field to be displayed on the right of the bar.
Returns: int - a field to be displayed on the right of the bar.
getStartShape()
public final int getStartShape()
Gets Shape at the beginning of the bar.
Returns: int - Shape at the beginning of the bar.
getStartShapeColor()
public final Color getStartShapeColor()
Gets java.awt.Color of the shape at the beginning of the bar.
Returns: java.awt.Color - a color of the shape at the beginning of the bar.
getStartShapeType()
public final int getStartShapeType()
Gets a type of the start shape.
Returns: int - a type of the start shape.
getTextStyle()
public final TextStyle getTextStyle()
Gets style of the bar’s text.
Returns: TextStyle - style of the bar’s text.
getTo()
public final int getTo()
Gets a finish point position of the gantt bar.
Returns: int - a finish point position of the gantt bar.
getTopBarTextConverter()
public final TaskBarTextConverter getTopBarTextConverter()
Gets user-defined converter to get text to render on the top of the task’s bar. Overrides the value of TopField
(getTopField()/setTopField(int)) property.
Returns: TaskBarTextConverter - user-defined converter to get text to render on the top of the task’s bar.
getTopField()
public final int getTopField()
Gets a field to be displayed on the top of the bar.
Returns: int - a field to be displayed on the top of the bar.
setBarColor(Color value)
public final void setBarColor(Color value)
Sets java.awt.Color of the bar style.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color | a color of the bar style. |
setBarShape(int value)
public final void setBarShape(int value)
Sets BarShape
(getBarShape()/setBarShape(int)) of the bar style.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | BarShape of the bar style. |
setBottomBarTextConverter(TaskBarTextConverter value)
public final void setBottomBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the bottom of the task’s bar. Overrides the value of BottomField
(getBottomField()/setBottomField(int)) property.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TaskBarTextConverter | user-defined converter to get text to render on the bottom of the task’s bar. |
setBottomField(int value)
public final void setBottomField(int value)
Sets a field to be displayed on the bottom of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a field to be displayed on the bottom of the bar. |
setEndShape(int value)
public final void setEndShape(int value)
Sets Shape at the end of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | Shape at the end of the bar. |
setEndShapeColor(Color value)
public final void setEndShapeColor(Color value)
Sets java.awt.Color of the shape at the end of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color | a color of the shape at the beginning of the bar. |
setEndShapeType(int value)
public final void setEndShapeType(int value)
Sets a type of the end shape. GanttBarType.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a type of the end shape. |
setFrom(int value)
public final void setFrom(int value)
Sets a start point position of the gantt bar. Field.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a start point position of the gantt bar. |
setInsideBarTextConverter(TaskBarTextConverter value)
public final void setInsideBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render inside of the task’s bar. Overrides the value of InsideField
(getInsideField()/setInsideField(int)) property.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TaskBarTextConverter | user-defined converter to get text to render inside of the task’s bar. |
setInsideField(int value)
public final void setInsideField(int value)
Sets a field to be displayed inside of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a field to be displayed inside of the bar. |
setItemType(int value)
public final void setItemType(int value)
Sets BarItemType of the bar style.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | BarItemType of the bar style. |
setLeftBarTextConverter(TaskBarTextConverter value)
public final void setLeftBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the left of the task’s bar. Overrides the value of LeftField
(getLeftField()/setLeftField(int)) property.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TaskBarTextConverter | user-defined converter to get text to render on the left of the task’s bar. |
setLeftField(int value)
public final void setLeftField(int value)
Sets a field to be displayed on the left of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a field to be displayed on the left of the bar. |
setRightBarTextConverter(TaskBarTextConverter value)
public final void setRightBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the right of the task’s bar. Overrides the value of RightField
(getRightField()/setRightField(int)) property.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TaskBarTextConverter | user-defined converter to get text to render on the right of the task’s bar. |
setRightField(int value)
public final void setRightField(int value)
Sets a field to be displayed on the right of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a field to be displayed on the right of the bar. |
setStartShape(int value)
public final void setStartShape(int value)
Sets Shape at the beginning of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | Shape at the beginning of the bar. |
setStartShapeColor(Color value)
public final void setStartShapeColor(Color value)
Sets java.awt.Color of the shape at the beginning of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.awt.Color | a color of the shape at the beginning of the bar. |
setStartShapeType(int value)
public final void setStartShapeType(int value)
Sets a type of the start shape.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a type of the start shape. |
setTextStyle(TextStyle value)
public final void setTextStyle(TextStyle value)
Sets style of the bar’s text.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextStyle | style of the bar’s text. |
setTo(int value)
public final void setTo(int value)
Sets a finish point position of the gantt bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a finish point position of the gantt bar. |
setTopBarTextConverter(TaskBarTextConverter value)
public final void setTopBarTextConverter(TaskBarTextConverter value)
Sets user-defined converter to get text to render on the top of the task’s bar. Overrides the value of TopField
(getTopField()/setTopField(int)) property.
Parameters:
Parameter | Type | Description |
---|---|---|
value | TaskBarTextConverter | user-defined converter to get text to render on the top of the task’s bar. |
setTopField(int value)
public final void setTopField(int value)
Sets a field to be displayed on the top of the bar.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | a field to be displayed on the top of the bar. |