I am using XYBlockRenderer for XYZ dataset having items. Color of every item is a function of its z value. I am using paintscale to assign the color. Now, I want to change the color of any particular item, lets say 9'th on mouse over. But this should change color of only 9'th item number of the dataset and others should remain the same. On detecting the mouse over I call
Code: Select all
notifyListeners(new RenderChangeEvent(this))
function which fires the renderer change event and calls
function of paintscale. How can this function be overridden to return a different color as it accepts only the double (z-value) of the item number.
I tried maintaining a flag which I set on mouse over. In
, I check if the flag is set, I return a different color. But this changes the color of all data items.
Any help will be appreciated.