LegendItem - no get method for Paint (color)

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Fred
Posts: 38
Joined: Sat Dec 12, 2015 4:57 pm
antibot: No, of course not.

LegendItem - no get method for Paint (color)

Post by Fred » Mon Dec 14, 2015 5:28 am

Hello

Was wondering why there is no method to get the color used in the LegendItem class?
When defining a new (add) "LegendItem" there is means to define (6th position) a color.
But what method(s) are available to retrieve the value defined?

Thanks

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: LegendItem - no get method for Paint (color)

Post by paradoxoff » Mon Dec 14, 2015 9:26 pm

If I have looked at the correct constructor, the 6th parameter is the fillPaint, and this property can be retrieved by using the *rataplan* getFillPaint-method.

Locked