I am obviously not understanding the documentation for the getSeriesPaint
method. I have the TimeSeries
object and I want to get the color being used to render it. However, it seems like I am in a catch-22. I need to know the series index (getIndex
), but to find that I need to know the series time period. However, to find the series time period, I need to know the index. I'm looking to do something like this:
Color color=(Color) r1.getSeriesPaint(arg0);
where r1
is the XYLineAndShapeRenderer
. What do I use for arg0
given the TimeSeries
object?