can i override the shape?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
re-engage
Posts: 6
Joined: Fri Jan 09, 2015 12:44 pm
antibot: No, of course not.

can i override the shape?

Post by re-engage » Tue Jan 20, 2015 5:17 pm

Hallo !!!
someone know if it is possible in a bubble chart override the bubble with the rectangle shape(for example, in way to have a promiscuous chart ) ?

thanks at everyone who will respond.

re-engage
Posts: 6
Joined: Fri Jan 09, 2015 12:44 pm
antibot: No, of course not.

Re: can i override the shape?

Post by re-engage » Wed Feb 04, 2015 3:22 pm

i have read that it can be done with the replace of drawitem method or XYBubbleRenderer but i have not understand how can i do, there is someone that give me a hint??


many thanks at all!

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

Re: can i override the shape?

Post by paradoxoff » Mon Feb 09, 2015 12:12 pm

Extend XYBubbleRenderer and override the drawItem-method. Replace the part between lines 234 and 241 where the renderer is drawing some Ellipse2D´s with your code (which should draw Rectangle2D´s).

Locked