I'm playing with Drools (JBossRules). Im trying to change a color of a bar in a bar chart basing on some rules.
Changing color by overwriting a getItemPaint method from Bar renderer is not a problem, I can set any color. But this is not what i want to have.
However I would like to call a method which will change a color of particular bar item. To have such functionality:
Code: Select all
plot.getRenderer.setItemPaint(int row, int column)
Code: Select all
when
x>5
then
barColor(red)
You will say that i can code it inside getItemPaint... but then if user types:
Code: Select all
when
x<5 and -4<x
then
when
barColor(red)
Code: Select all
plot.getRenderer.setItemPaint(int row, int column)
Is there any posibility to achieve such functionality?