public class BarStyle extends Object
Change the visual style of the bar for the item in the project view.
Modifier and Type | Class and Description |
---|---|
static class |
BarStyle.TaskToBarTextConverter
Task's data to bar text converter.
|
Constructor and Description |
---|
BarStyle()
Initializes a new instance of the
BarStyle class. |
Modifier and Type | Method and Description |
---|---|
Color |
getBarColor()
Gets
Color of the bar style. |
int |
getBarShape()
Gets bar shape (
BarShape ) of the bar style. |
BarStyle.TaskToBarTextConverter |
getBarTextConverter()
Gets converter to get text for the bar to render.
|
int |
getEndShape()
Gets
Shape at the end of the bar. |
Color |
getEndShapeColor()
Gets
Color of the shape at the end of the bar. |
int |
getItemType()
Gets
BarItemType of the bar style. |
int |
getStartShape()
Gets
Shape at the beginning of the bar. |
Color |
getStartShapeColor()
Gets
Color of the shape at the beginning of the bar. |
TextStyle |
getTextStyle()
Gets text style (
TextStyle ) of the text to render on the right of the bar. |
void |
setBarColor(Color value)
Sets
Color of the bar style. |
void |
setBarShape(int value)
Sets bar shape (
BarShape ) of the bar style. |
void |
setBarTextConverter(BarStyle.TaskToBarTextConverter value)
Sets converter to get text for the bar to render.
|
void |
setEndShape(int value)
Sets
Shape at the end of the bar. |
void |
setEndShapeColor(Color value)
Sets
Color of the shape at the end of the bar. |
void |
setItemType(int value)
Sets
BarItemType of the bar style. |
void |
setStartShape(int value)
Sets
Shape at the beginning of the bar. |
void |
setStartShapeColor(Color value)
Sets
Color of the shape at the beginning of the bar. |
void |
setTextStyle(TextStyle value)
Sets text style (
TextStyle ) of the text to render on the right of the bar. |
public BarStyle()
Initializes a new instance of the BarStyle
class.
public final Color getBarColor()
Gets Color
of the bar style.
public final void setBarColor(Color value)
Sets Color
of the bar style.
value
- a color of the bar style.public final int getBarShape()
Gets bar shape (BarShape
) of the bar style.
public final void setBarShape(int value)
BarShape
) of the bar style.value
- bar shape of the bar style.public final BarStyle.TaskToBarTextConverter getBarTextConverter()
Gets converter to get text for the bar to render.
public final void setBarTextConverter(BarStyle.TaskToBarTextConverter value)
Sets converter to get text for the bar to render.
value
- converter to get text for the bar to render.public final int getEndShape()
Gets Shape
at the end of the bar.
Shape
at the end of the bar.public final void setEndShape(int value)
Sets Shape
at the end of the bar.
value
- Shape
at the end of the bar.public final Color getEndShapeColor()
Gets Color
of the shape at the end of the bar.
public final void setEndShapeColor(Color value)
Sets Color
of the shape at the end of the bar.
value
- a color of the shape at the beginning of the bar.public final int getItemType()
Gets BarItemType
of the bar style.
BarItemType
of the bar style.public final void setItemType(int value)
Sets BarItemType
of the bar style.
value
- BarItemType
of the bar style.public final int getStartShape()
Gets Shape
at the beginning of the bar.
Shape
at the beginning of the bar.public final void setStartShape(int value)
Sets Shape
at the beginning of the bar.
value
- Shape
at the beginning of the bar.public final Color getStartShapeColor()
Gets Color
of the shape at the beginning of the bar.
public final void setStartShapeColor(Color value)
Sets Color
of the shape at the beginning of the bar.
value
- a color of the shape at the beginning of the bar.public final TextStyle getTextStyle()
Gets text style (TextStyle
) of the text to render on the right of the bar.
public final void setTextStyle(TextStyle value)
TextStyle
) of the text to render on the right of the bar.value
- text style of the text to render on the right of the bar.