Search found 1 match

by NRMarkham
Thu Jun 28, 2018 8:16 pm
Forum: JFreeChart
Topic: Make XYBubbleRenderer draw rectangles instead of ellipses
Replies: 0
Views: 4336

Make XYBubbleRenderer draw rectangles instead of ellipses

I'm looking to use an XYBubbleRenderer, but have each "bubble" rendered as a square/rectangle rather than a circle/ellipse. I've accomplished this by overriding drawItem() and changing Ellipse2D to Rectangle2D, but that leaves an awful lot of code repeated. Is there a better way to do this? If not, ...