private class JFXyPlot.TrendLine extends XyTrendBase
| Modifier and Type | Field and Description |
|---|---|
private int |
datasetIndex |
private Color |
lineColor |
private float |
lineWidth |
private Comparable |
trendKey |
| Constructor and Description |
|---|
TrendLine(JFXyDataset<X,Comparable> source,
Comparable seriesKey)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
XyTrend |
clear()
Removes this trend line from the chart
|
XyTrend |
withColor(Color color)
Sets the color for the trend line
|
XyTrend |
withLineWidth(float width)
Sets the line width for the trend line
|
createTrendData, intercept, r2, seriesKey, slopeprivate Color lineColor
private float lineWidth
private int datasetIndex
private Comparable trendKey
TrendLine(JFXyDataset<X,Comparable> source, Comparable seriesKey)
seriesKey - the series keypublic XyTrend withColor(Color color)
XyTrendcolor - the color for trend linepublic XyTrend withLineWidth(float width)
XyTrendwidth - the line widthCopyright 2014-2017, Xavier Witdouck