I am very new to JFreeChart so you may find the question to be childish

I am developing a normal gantt chart with different tasks. To seperate one task clearly from other I want to draw a horizontal line between two tasks.
I tried to use
Code: Select all
public CategoryLineAnnotation(java.lang.Comparable category1,
double value1,
java.lang.Comparable category2,
double value2,
java.awt.Paint paint,
java.awt.Stroke stroke)
Actually my domain axis represents time so category1 and category2 will be time values. Y-axis consists of task name I can not use them as value of parameters value1 and value2.
Please please please help me.