I suspect you are going to have trouble getting a 'fix' for this problem. I for one am not going to go through all that code to try to understand it and I suspect most people here will feel the same. Also, I do not know which JFreeChart version you based this on to see what changes you made and though I use JFreeChart and have a version of the source code it may not be the version you started from. If there was an SSCCE then I might be inclined to run it and look for the obvious but I'm not willing to generate one for you.
posted 7 years ago
Sorry, I didn't clarify this
The changes I have made were
1) adding a branch to the drawItem method, so that when it is "set" and a count has been added
This will affect the g2.fill(bar) method, and there will be a repetition of g2.fill(bar) calls for i number of times.
which there was a pre-shift of location x for the bar, I didn't change the rest of the code.
The only I notice was
getItemLabelGenerator is using row and column parameters of drawItem method which shouldn't be affected by the
code preceding it. Here, when I set a breakpoint inside getItemLabelGenerator
I will get a null from the above method.
That's it. Hope you understand.
To my mind you still haven't clarified it! In fact, if anything I think you have added to my confusion. In your first post you did not post the code for setMove() or Increment() and I still can't see what they are supposed to do. Sorry but I think you need to post an SSCCE ( <- follow the link) to stand any chance.
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop