class GChartTextStyle extends Object implements ChartTextStyle, Consumer<JsObject>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Field and Description |
|---|---|
private GChartLabel |
label |
| Constructor and Description |
|---|
GChartTextStyle(Color color,
Font font)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JsObject object) |
(package private) GChartLabel |
label()
Returns the label
|
ChartTextStyle |
withColor(Color color)
Sets the text color
|
ChartTextStyle |
withFont(Font font)
Sets the font for this text style
|
private GChartLabel label
GChartLabel label()
public ChartTextStyle withColor(Color color)
ChartTextStylewithColor in interface ChartTextStylecolor - color valuepublic ChartTextStyle withFont(Font font)
ChartTextStylewithFont in interface ChartTextStylefont - sets the font for textCopyright 2014-2017, Xavier Witdouck