private class JFChartBase.TitleAdapter extends Object implements ChartLabel
| Modifier and Type | Field and Description |
|---|---|
private org.jfree.chart.JFreeChart |
chart |
private boolean |
subtitle |
| Modifier | Constructor and Description |
|---|---|
private |
TitleAdapter(org.jfree.chart.JFreeChart chart,
boolean subtitle)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
private org.jfree.chart.title.TextTitle |
getTitle()
Returns the title for the chart
|
ChartLabel |
withColor(Color color)
Sets the text color
|
ChartLabel |
withFont(Font font)
Sets the font for this text style
|
ChartLabel |
withText(String text)
Sets the text for this label
|
private TitleAdapter(org.jfree.chart.JFreeChart chart,
boolean subtitle)
chart - the chart referencesubtitle - true if this represents a subtitlepublic ChartLabel withText(String text)
ChartLabelwithText in interface ChartLabeltext - the text for labelpublic ChartLabel withColor(Color color)
ChartLabelwithColor in interface ChartLabelcolor - color valuepublic ChartLabel withFont(Font font)
ChartLabelwithFont in interface ChartLabelfont - sets the font for textprivate org.jfree.chart.title.TextTitle getTitle()
Copyright 2014-2017, Xavier Witdouck