title: JFreeChart Annotations
body: <p>I'm having trouble understanding how the annotations system works. 
  For example I can draw a vertical line as an annotation using some coordinates I get from the mouse, but I can't draw a line between 2 different points.</p>
  
  <p>This works:</p>
  
  <pre><code>HighLowRenderer hlr=(HighLowRenderer)plot.getRenderer();
  
  XYLineAnnotation a1=new XYLineAnnotation(chartX, 0, chartX, dataArea.getHeight(), bs1, Color.black);
  hlr.addAnnotation(a1);
  </code></pre>
  
  <p>where chartX is a computed value from the mouse position.</p>
  
  <p>This does not work:  </p>
  
  <pre><code>HighLowRenderer hlr=(HighLowRenderer)plot.getRenderer();  
  XYLineAnnotation a2=new XYLineAnnotation(175, 67, 230, 167, bs1, Color.black);
  hlr.addAnnotation(a2);
  </code></pre>